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