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