FERROR(3)

NAME
4.8 `ferror'--test whether read/write error has occurred

SYNOPSIS
     #include <stdio.h>
     int ferror(FILE *FP);

DESCRIPTION
The `stdio' functions maintain an error indicator with each file pointer FP, to record whether any read or write errors have occurred on the associated file or stream. Use `ferror' to query this indicator.
   See `clearerr' to reset the error indicator.

RETURNS
`ferror' returns `0' if no errors have occurred; it returns a nonzero value otherwise.

PORTABILITY
ANSI C requires `ferror'.
   No supporting OS subroutines are required.

SEE ALSO
ferror is part of the library. The full documentation for is maintained as a Texinfo manual. If info and are properly installed at your site, the command

    info

will give you access to the complete manual.