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