c:io:ferror

C++ Reference

ferror

Syntax:

    #include <cstdio>
    int ferror( FILE *stream );

The ferror() function looks for errors with stream, returning zero if no errors have occured, and non-zero if there is an error. In case of an error, use perror() to determine which error has occured.

Related Topics: clearerr, feof, perror