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