Action() { char *username; lr_output_message("参数值为:%s",lr_eval_string("{NewParam}")); username=lr_eval_string("{NewParam}"); lr_output_message("username的值是:%s",username); lr_output_message("截取后的值:%s",strtok(lr_eval_string("{NewParam}"),"kibon")); //strtok 返回特殊标记分割的字符 lr_save_string((char*)strtok(lr_eval_string("{NewParam}"),"kibon"),"temp"); lr_output_message("变量的值为:%s",lr_eval_string("{temp}")); return 0; } |