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