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