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