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