ref: c0280c607f92846cc05cb4a8c20c03fd4cea195a dir: /sys/src/libstdio/ferror.c/
/* * pANS stdio -- ferror */ #include "iolib.h" int ferror(FILE *f){ return f->state==ERR; }