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