put the logic after the co-related string
strtok is used when you get a long value from load runner seperated by delimiters for example,( and you want to seperate each value from the delimiters
logic()
{
extern char *strtok(char * string,const char * delimiters); // explicit declaration
char seperators[]= "(,";
char *token;
char c[100];
char * a[100];
char * d[100];
int i=0;
strcpy(c,lr_eval_string("{c_ContentGUID}"));
token= (char *) strtok(c,seperators); //Get the first token
if(!token)
{
lr_output_message("No token found in the string");
return (-1);
}
for(i=0; token !=NULL;i++)
{
a[i]=token;
lr_output_message("%s", a[i]);
token= (char *) strtok(c,seperators); // get the next token
}
lr_save_string( a[6],"c_ContentGUID");
lr_save_string( a[5],"c_fgfgh");
lr_save_string( a[2],"c_xyz");
lr_save_string( a[1],"c_sret");
lr_output_message("c_ContentGUID : %s", lr_eval_string("{c_ContentGUID}"));
return 0;
}