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