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