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