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