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