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