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