Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/libstdio/ferror.c
/* * pANS stdio -- ferror */ #include "iolib.h" int ferror(FILE *f){ return f->state==ERR; }