ref: b15430979d712d27ea4cd40ca2ab031206081dfe
dir: /sys/src/ape/lib/ap/stdio/clearerr.c/
/* * pANS stdio -- clearerr */ #include "iolib.h" void clearerr(FILE *f){ switch(f->state){ case ERR: f->state=f->buf?RDWR:OPEN; break; case END: f->state=RDWR; break; } }