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