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