Tests for the End Of File.
int _eof (int handle);
int eof (int handle);
Required Header |
<io.h> |
Return Value
Each of these functions returns 1 if the current position of file refered to by handle is the End Of File, or 0 if it is not. -1 indicates an error.
Parameters
handle
The handle of an open file
Remarks
The _eof function tests the current position of the file represented by handle.