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