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