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