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