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