Clears the end-of-file and error indicators for a stream.
#include <stdio.h> void clearerr ( FILE *fp);
(IN) Points to the file to be cleared.
The clearerr function clears the end-of-file and error indicators for the file pointed to by fp. These indicators are cleared only when the file is opened or by an explicit call to the clearerr or rewind functions.