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