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