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