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