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