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