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