std::clearerr - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::clearerr

From cppreference.com
< 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

(none)

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

feof | checks for the end-of-file (function) [edit]
perror | displays a character string corresponding of the current error to stderr (function) [edit]
ferror | checks for a file error (function) [edit]
C documentation for clearerr

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/io/c/clearerr&oldid=67594"
Category:

- Todo no example