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