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