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