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