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