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