clearerr function — Clears error status
void clearerr(FILE* stream)
The clearerr function clears the error and end-of-file indicators for stream.
clearerr
stream
feof function, ferror function