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