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