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