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