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