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