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