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