411 REFERENCE · Wikibooks
C programming/stdio.h/clearerr
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Syntax:
#include <cstdio>
void clearerr( FILE *stream );
The clearerr function resets the error flags and EOF indicator for the given stream. When an error occurs, you can use perror() to figure out which error actually occurred.
deep