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