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