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