Mail Archives: djgpp/1997/02/09/10:26:13
On Sat, 8 Feb 1997 22:31:40 GMT, ethan DOT jacobs AT juno DOT com (Ethan L
Jacobs) wrote:
> I have a book that says fscanf is supposed to return EOF. In
>DJGPP it returns NULL. Is that an error or is it supposed to be there?
I'm not sure what you're referring to here... fscanf returns the
number of items successfully scanned (quote from libc docs) or, which
isn't stated, EOF if it reaches the end of the file.
Note that here NULL==0, so if it returns 0 meaning no items scanned
you could be reading this as a NULL.
George Foot
- Raw text -