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