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