Declaration:
int feof(unsigned long stream);
Description
Detects the end-of-file on a stream.
feof tests the given stream for the end-of-file indicator. Once the indicator is set, the read operations on the file return the indicator until rewind is called or the file is closed. The end-of-file indicator is reset with each input operation.
Returned value
feof will return nonzero, if the end-of-file indicator is detected on the last input operation on the specified stream, and 0, if the end-of-file has not been reached.
|