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