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