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