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