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