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