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