Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
feof - test end-of-file indicator on stream
&pagelevel(4)&pagelevel
Syntax | #include <stdio.h> int feof(FILE *stream); |
Description | feof() tests the end-of-file indicator for the stream pointed to by stream.
|
Return val. | != 0
0 | EOF is set for stream; the end of file was reached.
EOF is not set.
|
Notes | feof() is normally used after access functions that do not report end of file (fread()).
If the file has been repositioned (e.g. with fseek(), fsetpos(), rewind()) after EOF has been reached, or if the clearerr() function has been called, feof() returns a value of 0. The program environment determines whether feof() is executed for a BS2000 or POSIX file. BS2000
feof() is implemented both as a macro and as a function. feof() can also be used unchanged on files with record I/O. (End)
|
See also | clearerr(), ferror(), fopen(), fseek(), fsetpos(), stdio.h.
|