This is a File I/O function. It is not implemented in the Compiler.
#include <stdio.h>
int ferror(FILE *f);
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.
Zero, if there was no error; non-zero otherwise.