这里介绍不用strtok的方法来切分字符串.
char *haystack="aaa||a||bbb||c||ee||";
char *needle="||";
char* buf = strstr( haystack, needle);
while( buf != NULL )
{
char szTemp[255] = {0};
_snprintf(szTemp, buf-haystack, "%s", haystack);
haystack = buf + strlen(needle);
/* Get next token: */
buf = strstr( haystack, needle);
}