ferror()

This is a File I/O function. It is not implemented in the Compiler.

Syntax
#include <stdio.h>

  
  int ferror(FILE *f);

  
Description

ferror() tests whether an error had occurred on file f. To clear the error indicator of a file, use clearerr(). rewind() automatically resets the file's error flag.

Note: Do not use ferror() to test for end-of-file. Use feof() instead.
Return

Zero, if there was no error; non-zero otherwise.