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