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