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