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