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