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