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