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