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