Subversion Repositories wimsdev

Rev

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

Rev 8849 Rev 11125
Line 131... Line 131...
131
    int l;
131
    int l;
132
 
132
 
133
    va_start(vp,s);
133
    va_start(vp,s);
134
    vsnprintf(buf,sizeof(buf),s,vp);
134
    vsnprintf(buf,sizeof(buf),s,vp);
135
    va_end(vp);
135
    va_end(vp);
136
    f=fopen(buf,type); if(f==NULL) {
136
    f=fopen(buf,type);
-
 
137
    if(f==NULL) {
137
      if(*type=='r') content[0]=0; return;
138
      if(*type=='r') content[0]=0;
-
 
139
      return;
138
    }
140
    }
139
    switch(*type) {
141
    switch(*type) {
140
      case 'a':
142
      case 'a':
141
      case 'w': {
143
      case 'w': {
142
          l=strlen(content); fwrite(content,1,l,f); break;
144
          l=strlen(content); fwrite(content,1,l,f); break;