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