blob: 4973da35794aa39a5383035c0ee021e5311fa301 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*
* pANS stdio -- sopenw
*/
#include "iolib.h"
FILE *_IO_sopenw(void){
FILE *f;
if((f=_IO_newfile())==NULL)
return NULL;
f->buf=f->rp=f->wp=0;
f->state=OPEN;
f->flags=STRING;
f->fd=-1;
return f;
}
|