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