1 2 3 4 5 6 7 8 9 10
#include "libioP.h" #include "stdio.h" int ferror(fp) FILE* fp; { CHECK_FILE(fp, EOF); return _IO_ferror(fp); }