##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# clearerr

From cppreference.com
< c‎ | io

Defined in header `<stdio.h>` |  |
void clearerr( 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=c/io/clearerr&oldid=56415"
Category:

- Todo no example