C语言字符串经常使用处理技巧总结

1.从一串字符串中提取中间一段,并单独拿出来html char *pStart = NULL,*pMid = NULL,*pEnd = NULL,*t = NULL; pStart= strstr(pStart, "A"); pEnd = strstr(pStart, "B"); tempLen = pEnd - pStart; t = (char *)malloc(tempLen + 1);//
相关文章
相关标签/搜索