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