INtime SDK Help
feof

Tests for end-of-file on a stream.

#include <stdio.h>

int feof (FILE *stream);

Parameters

stream
Pointer to FILE structure.

Remarks

Once end-of-file is reached, read operations return an end-of-file indicator until the stream is closed or until rewind, fsetpos, fseek, or clearerr is called. Feof is implemented as a macro.

Return Values

0 (zero)
the current position is not end-of-file.
Any other value
Returned for the first read operation that attempted to read past end-of-file.
Note:   There is no error return.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/stdio.h stdio.h clib.lib

See Also

rewind, fsetpos, fseek, clearerr eof, ferror, perror