feof - check and reset stream status, in particular, determine if the end is nigh.
#include <stdio.h> int feof( FILE *stream);
The function feof(3) tests the end-of-file indicator for the stream pointed to by stream, returning non-zero if it is set. The end-of-file indicator can only be cleared by the function clearerr(3).
These functions should not fail and do not set the external variable errno.
The function feof(3) conforms to X3.159-1989 (``ANSI C'').