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