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