Subversion Repositories wimsdev

Rev

Rev 9336 | Rev 11127 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9336 Rev 11122
Line 99... Line 99...
99
 
99
 
100
    va_start(vp,s);
100
    va_start(vp,s);
101
    vsnprintf(buf,sizeof(buf),s,vp);
101
    vsnprintf(buf,sizeof(buf),s,vp);
102
    va_end(vp);
102
    va_end(vp);
103
    f=fopen(buf,type); if(f==NULL) {
103
    f=fopen(buf,type); if(f==NULL) {
104
      if(*type=='r') content[0]=0; return;
104
      if(*type=='r') content[0]=0;
-
 
105
      return;
105
    }
106
    }
106
    switch(*type) {
107
    switch(*type) {
107
      case 'a':
108
      case 'a':
108
      case 'w': {
109
      case 'w': {
109
          l=strlen(content); fwrite(content,1,l,f); break;
110
          l=strlen(content); fwrite(content,1,l,f); break;