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