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