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