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