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