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