Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all articles
Browse latest Browse all 12134

Re: strtok is not splitting string here

$
0
0

Hi

Try with this code:

Action()
{
    extern char * strtok(char * string, const char * delimiters ); 
    char separators[] = "><"; 
    char * token;
    char path[] = "<TD id=\"Name1\" scope=\"row\">MODAOTS_Change1</TD>";

    token = (char *)strtok(path, separators);
    token = (char *)strtok(NULL, separators); 
    lr_output_message ("%s", token );

    return 0;
}

Respond:

Starting action Action.
Action.c(15): MODAOTS_Change1
Ending action Action.

 

Rodolfo Leitón

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

For LoadRunner here.
For Performance Center here.

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

If you found this information useful please leave a kudo.


Viewing all articles
Browse latest Browse all 12134

Trending Articles