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