EOF

Donald Holloway hollowd1@bobo.ca.boeing.com
Fri Apr 7 14:00:00 GMT 2000


Dear Guru,

The following statement isn't working with GNU C:

while ((c = getchar()) != EOF)
          .
          .
          .

It appears the compiler doesn't recongize the EOF 
as a key work.  What is the substitute "end of
file" word or variable that I can use instead of EOF?

Thanks,

Don Holloway



More information about the Gcc-bugs mailing list