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