2.12.3.1 clearerr

Declaration:

void clearerr(FILE *stream);

Clears the end-of-file and error indicators for the given stream. As long as the error indicator is set, all stream operations will return an error until clearerr or rewind is called.