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