loadrunner Action() { char path[] = "HelloImran"; //---is...

  • perf-test.com need your contributions to build up a strong repository of performance engineering resources.

A

Ali Farhan

Guest
Action() { char path[] = "HelloImran"; //---is this a bug? when no tokens found //char path[] = "HelloImran87654321"; ---------works fine! char separators[] = "87654321"; char *token; // Get the first token token = (char *)strtok(path, separators); if (!token) { lr_output_message ("No tokens found in string!"); return( -1 ); } else { lr_output_message ("%s",token); } return 0; }