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