两个赋值指针挖字符串
#include<stdio.h> #include<string.h> #include<stdlib.h> int spitString(const char *buf1,char c,char buf2[10][30],int *count) { char *p = NULL, *pTmp = NULL; int tmpcount = 0; p = buf1; pTmp = buf1; do { p = strchr(p,c); if(p != NULL) { if(p-pTmp > 0) { strncpy(buf2[tmpcount],pTmp,p-pTmp); buf2[tmpcount][p-pTmp] = '