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