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