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