Namespaces
Variants
Views
Actions

ferror

From cppreference.com
< c‎ | io
Revision as of 22:35, 31 May 2013 by P12bot (Talk | contribs)

 
 
File input/output


Functions
File access
Direct input/output
Unformatted input/output
(C95)(C95)
(C95)
(C95)(C95)
(C95)
(C95)
Formatted input
Formatted output
File positioning
Error handling
ferror
Operations on files
 
Defined in header <stdio.h>
int ferror( FILE *stream );

Checks the given stream for errors.

Contents

Parameters

stream - the file stream to check

Return value

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

Example

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]