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