ferror

Example: ferrorInput-Output Functions

Checks if any error has occurred during file I/0.

int ferror( FILE *file_pointer);

file_pointer A pointer to a file structure created with fopen

Return Values

If there were no errors, returns 0. Otherwise, returns a non-zero value and the error indicator of the stream remains set.

For ferror details, refer to your C language documentation.