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