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