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