Declaration:
int eof(long handle);
Description
Checks for end-of-file.
eof determines whether the file associated with handle has reached the end-of-file.
Returned Value
If the current position is the end-of-file, then eof will return 1; otherwise, it will return 0. The return value of -1 indicates an error; the errno global variable is set to
EBADF Bad file number
|