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