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