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