Unix problem or C problem?
Jeff Beadles
jeff at tekcsc.MKT.TEK.COM
Thu Jan 19 10:07:07 AEST 1989
In article <245 at ibd.BRL.MIL> heilpern at brl.arpa (Mark A. Heilpern (IBD) <heilpern>) writes:
$
$ HELPHELPHELPHELPHELPHELPHELPHELPHELPHELPHELPHELP
$
$ When running a program with the following code:
$
$ while (fscanf(input,"%d", & stars)!=EOF) {
Shouldn't this be here -------^
$ fprintf(stderr,"OK to this point.\n");
$ fprintf(output,"%4d |",lines++);
$ stars /= 50;
$ for (count = 0; count <= stars; count++)
$ fprintf(output,"*");
$ fprintf(output,"\n");
$ }
$
Is it a case of the missing '&'?
-Jeff Beadles
jeff at tekcsc.MKT.TEK.COM
More information about the Comp.unix.wizards
mailing list