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