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