Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

clearerr - Clear end-of-file and error flag

&pagelevel(4)&pagelevel

Definition

#include <stdio.h>

void clearerr(FILE *fp);

clearerr clears the end-of-file and error information of the file with the file pointer fp.

Note

clearerr is implemented as a macro and as a function (see section “Functions and macros”).

Record I/O

clearerr can also be used on files with record I/O.

See also

feof, ferror