admin submitted a new resource:
String Manipulation in loadrunner Using Strtok - Breaking strings into multiple parts separated by delimiter
Read more about this resource...
String Manipulation in loadrunner Using Strtok - Breaking strings into multiple parts separated by delimiter
Example 1: Breaking the string into multiple parts as specified by a delimiter. See the following example where we are breaking the string by a delimiter ":"
Code:Action() { char str[80] = "We love: SPEForums.com"; const char s[2] = ":"; char *token; /* get the first token */ token = (char *)strtok(str, s); lr_output_message("The first output is %s", token); /* walk through other tokens */ while( token != NULL ) {...
Read more about this resource...