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