摘要:        
用printf语句打印一下内容 printf("Content-Type: application/octet-stream-dummy\n"); printf("Content-Disposition: filename=%s\n\n", dwnFileName[0]); fwrite(comtbp, sizeof(struct stcomtb), 1, stdout);    阅读全文
posted @ 2012-04-12 19:08
邵贤军
阅读(362)
评论(0)
推荐(0)
        
            
        
        
摘要:        
内存结构体=>文件#include <stdio.h>#include <stdlib.h>const char* fileName = "/home/fnst/temp/dwntest/file.bin";struct Person{ char sex; int age;};int main(){ /*simulate the comtb in the memory*/ struct Person person; person.sex = 'M'; person.age = 12; /*write memory to the     阅读全文
posted @ 2012-04-12 19:06
邵贤军
阅读(358)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号