Rev 8899 | Rev 12248 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8899 | Rev 11124 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | 55 | ||
56 | va_start(vp,s); |
56 | va_start(vp,s); |
57 | vsnprintf(buf,sizeof(buf),s,vp); |
57 | vsnprintf(buf,sizeof(buf),s,vp); |
58 | va_end(vp); |
58 | va_end(vp); |
59 | f=fopen(buf,type); if(f==NULL) { |
59 | f=fopen(buf,type); if(f==NULL) { |
60 | if(*type=='r') content[0]=0 |
60 | if(*type=='r') content[0]=0; |
- | 61 | return; |
|
61 | } |
62 | } |
62 | switch(*type) { |
63 | switch(*type) { |
63 | case 'a': |
64 | case 'a': |
64 | case 'w': { |
65 | case 'w': { |
65 | l=strlen(content); fwrite(content,1,l,f); break; |
66 | l=strlen(content); fwrite(content,1,l,f); break; |