Namespaces
Variants
Views
Actions

ferror

From cppreference.com
< c | io
Defined in header <stdio.h>
int ferror( FILE *stream );

Checks the given stream for errors.

Contents

[edit] Parameters

stream - the file stream to check

[edit] Return value

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

[edit] Example

[edit] See also

clears errors
(function) [edit]
checks for the end-of-file
(function) [edit]
displays a character string corresponding of the current error to stderr
(function) [edit]