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