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