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