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