EOF with fgets() - (nf)

futrelle futrelle at uiucdcs.UUCP
Fri Nov 4 13:26:43 AEST 1983


#R:emory:-118500:uiucdcs:27600029:000:363
uiucdcs!futrelle    Nov  3 16:59:00 1983

Try writing a program that JUST reads lines from a file and
checks.  Try omitting your variable definitions.  I had a similar
error once, and found it was because I had defined an integer
variable called read, so that whenever I used getc() the program
bombed with an illegal instruction error.  When I took out
the definitions, the program worked!

Joe Futrelle



More information about the Comp.lang.c mailing list