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