Tests for the end of a stream input/output file.
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.