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