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