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