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