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