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