当前位置: 技术问答>linux和unix
从字符串中 查找匹配字符串
来源: 互联网 发布时间:2016-10-14
本文导语: void parser_xml(char *xml , char *keychar ,char *tembuff) { char buff1[512]; sprintf(buff1,"",keychar); char *p = strstr(xml,buff1); sscanf(p+strlen(buff1),"%[^
void parser_xml(char *xml , char *keychar ,char *tembuff)
{
char buff1[512];
sprintf(buff1,"",keychar);
char *p = strstr(xml,buff1);
sscanf(p+strlen(buff1),"%[^
{
char buff1[512];
sprintf(buff1,"",keychar);
char *p = strstr(xml,buff1);
sscanf(p+strlen(buff1),"%[^