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