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