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