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