摘要: 用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 邵贤军 阅读(344) 评论(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 邵贤军 阅读(352) 评论(0) 推荐(0) 编辑