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