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