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