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