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