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