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