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