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