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