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