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