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