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