我的程序中有分段错误。这是我的代码
char buffer[5000]="";
memset(buffer,0,sizeof(buffer));
sprintf(buffer,"<?xml version=\"1.0\" encoding=\"utf-8\"?>\
<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:log=\"http://wsdlclass.wsdlcreat.sims.triesten.com\">\
<soap:Header>\
</soap:Header>\
<soap:Body>\
<log:saveMessBillingDetails>\
<log:userId>%s</log:userId>\
<log:billNo>%s</log:billNo>\
<log:billingAmount>%s</log:billingAmount>\
<log:billingDate>%s</log:billingDate>\
<log:messId>%s</log:messId>\
<log:itemId>%s</log:itemId>\
<log:ipAddress>%s</log:ipAddress>\
<log:schoolId>%s</log:schoolId>\
</log:saveMessBillingDetails>\
</soap:Body>\
</soap:Envelope>",
"00007", "152555", "42.00", "17-08-2013", 10, "CHKK", "10.10.1.164", 1);