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