sprintf_s 总是错误 虽然没有报错 如下
sprintf_s(http_header,BUFF_SIZE,http_res_hdr_tmp1,p_file_len,type); --这是我的代码
成员变量:1,char http_header[BUFF_SIZE] = { 0 };
2,#define BUFF_SIZE 10240
3,char http_res_hdr_tmp1="HTTP/1.1 200 OK \r\nServer:Jiangwei's Server\r\n"
"Accept-Ranges:bytes\r\nContent-Length:%d\r\nConnection:close\r\n"
"Content-Type:%s\r\n\r\n";
4,p_file_len = strlen(Html2); 值是64
5 , char type = "html";
可是我调试的结果执行到下一步的时候 http_header的值变成了“弱?”也就是乱码,实在是不明白 在线等大神解答 急急急急急急!!!!!