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