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