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