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