摘要:
用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); 阅读全文
摘要:
内存结构体=>文件#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 阅读全文