< cpp‎ | io‎ | c
Defined in header <cstdio>
void clearerr( std::FILE* stream );

Resets the error flags and the EOF indicator for the given file stream.


[edit] Parameters

stream - the file to reset the error flags for

[edit] Return value


[edit] Example

[edit] See also

checks for the end-of-file
displays a character string corresponding of the current error to stderr
checks for a file error
C documentation for clearerr