Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_posix/sys/src/libstdio/clearerr.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
/*
2
 * pANS stdio -- clearerr
3
 */
4
#include "iolib.h"
5
void clearerr(FILE *f){
6
	switch(f->state){
7
	case ERR:
8
		f->state=f->buf?RDWR:OPEN;
9
		break;
10
	case END:
11
		f->state=RDWR;
12
		break;
13
	}
14
}