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