Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
/*
2
 * pANS stdio -- fopen
3
 */
4
#include "iolib.h"
5
FILE *fopen(const char *name, const char *mode){
6
	FILE *f;
7
	for(f=_IO_stream;f!=&_IO_stream[FOPEN_MAX];f++)
8
		if(f->state==CLOSED)
9
			return freopen(name, mode, f);
10
	return NULL;
11
}