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