FERROR - check for error.

(ANSI Standard)

Usage:

#include <stdio.h>
i = ferror( f );

Where:

FILE *f;
points to the file to be checked for errors.
int i;
is non-zero if an error has occurred in reading or writing the file; otherwise it is zero. The error indication will last until the file is closed unless it is cleared by the "clearerr" function.

Description:

"ferror" determines if an error condition has occurred on the indicated file.

See Also:

expl c lib clearerr

Copyright © 1996, Thinkage Ltd.