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