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