ferror, feof, clearerr, fileno - stream status inquiries
The function returns nonzero when an error has occurred reading or
writing the named stream, otherwise zero. Unless cleared by the error
indication lasts until the stream is closed.
The function returns nonzero when end of file is read on the named
input stream, otherwise zero.
The function resets both the error and EOF indicators on the named
The function returns the integer file descriptor associated with the
These functions are implemented as macros; they cannot be redeclared.
See Alsoopen(2), fopen(3s)ferror(3s)