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