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