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