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