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