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