ferror.c (88B)
1 #include <stdio.h> 2 3 #undef ferror 4 5 int 6 ferror(FILE *fp) 7 { 8 return fp->flags & _IOERR; 9 }