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