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