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