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