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