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