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