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