TA的每日心情 | 奋斗 2015-8-4 09:44 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
token = (char *)strtok(lr_eval_string("{str}"),separators); // Get the first token
if (!token) {
lr_output_message ("No tokens found in string!");
return( -1 );
} else{
while (token != NULL ) { // While valid tokens are returned
lr_output_message ("--%s---", token);
strcpy(val[i],token);
lr_output_message("Val # is: %s", val[i]);
// Get the next token
lr_save_string(val[i],"row_idB");
lr_output_message("--%s--", lr_eval_string("{row_idB}"));
token = (char *)strtok(NULL, separators);
i++;
}
str是这样的字符,"4afdfdfadfdfdfad","4afdfd456fdfdfad","4afdfdfaafdfdfdfdfd";
最后一个字符串分割
时分割出来了fadfad,dfd....好多个。是什么原因 |
|