Everything

feof


Tests for the end of a stream input/output file.

[Format]

#include <stdio.h>

long feof (FILE *fp);

[Parameters]

fp File pointer

[Return values]

End-of-file: Nonzero

Otherwise: 0

[Remarks]

The feof function tests for the end of the stream input/output file indicated by file pointer fp.

The feof function tests the end-of-file indicator for the specified stream input/output file, and if the indicator is set, returns nonzero to indicate that the file is at its end. If the end-of-file indicator is not set, the feof function returns zero to show that the file is not yet at its end.