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