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