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