ref: 32d7bdbcc2afd6aecc33ddb49ea5668fd76ff9f6 dir: /lib/c/ferror.c/
#include <stdio.h> #undef ferror int ferror(FILE *fp) { return fp->flags & _IOERR; }