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