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