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