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