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