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