ferror()

This is a file I/O function, also hardware dependent. It is not implemented in this Compiler.

Syntax
  #include <stdio.h>
  
  int ferror(FILE *f);

  
Description

ferror() tests whether an error occurred on file f. To clear the file's error indicator, 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 no error occurred; non-zero otherwise.