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