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