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