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