ferror, feof, clearerr - stream status inquiries
#include <stdio.h>
ferror() tests the error indicator for the stream pointed to by stream.
feof() tests the end-of-file indicator for the stream pointed to by stream.
clearerr() resets the error indicator and EOF indicator to zero on the named stream.
ferror() returns non-zero when an error has previously occurred reading from or writing to the named stream otherwise zero.
feof() returns non-zero when EOF has previously been detected reading the named input stream, otherwise zero.
clearerr() does not return a value.
No errors are defined.