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