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