ref: 85cab72ea0093d529db65bd5946cf166019f9edb
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; } }