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