C语言 将字符串按某个字符分割,如:"aaaa,bbbb,cccc,dddd,"。并将结果存入二维数组中
int spitString(char * buf1, char *c, char buf2[10][30], int *count )
{
int i = 0;
int len = 0;
char *temp1 = buf1;
char *temp2 = buf1;
while ((temp1 = strstr(temp2, c)) != NULL)
{
//temp1 ...
原创
2018-08-08 22:15:07 ·
2226 阅读 ·
0 评论