##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# ferror

From cppreference.com
< c‎ | io

Defined in header `<stdio.h>` |  |
int ferror( FILE *stream ); |  |

Checks the given stream for errors.

### [edit] Parameters

stream | - | the file stream to check

### [edit] Return value

nonzero value if the file stream has errors occurred, ​0​ otherwise

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

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

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

- Todo no example