411 REFERENCE · Wikibooks
C++ Programming/Code/Standard C Library/Functions/ferror
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
ferror
#include <cstdio>
int ferror( FILE *stream );
The ferror() function looks for errors with stream, returning zero if no errors have occurred, and non-zero if there is an error. In case of an error, use perror() to determine which error has occurred.
Related topics clearerr - feof - perror