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