ferror

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

Parameters

stream - the file stream to check

Return value

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