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