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