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