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