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 indicators

&pagelevel(4)&pagelevel

Syntax

#include <stdio.h>

void clearerr(FILE *stream);

Description clearerr() clears the end-of-file and error indicators for the stream to which stream points.

BS2000
clearerr() is implemented both as a macro and as a function.

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

Notes

The program environment determines whether clearerr() is executed for a BS2000 or
POSIX file.

See also

feof(), ferror(), stdio.h.