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