ref: 36c9a2489d1f0e3d4e6a890bb86edde64d719acb
dir: /sys/src/libstdio/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;
}
}