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