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