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