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