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