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