I am new to HP Load Runner and is trying to convert an existing C code to be compatible with Load Runner. I have a array tempStr from Load Runner that I am trying to put its contents into char str[1024]. I tried using strcpy(lr_eval_string("{tempStr}"),str); but the contents in str is still empty. Does anyone know how I can put the contents of tempStr to str?
EDIT: My code is:
char str[1024];
strcpy(str,lr_eval_string("{c_Response}"));
I am getting the following errors:
Ccode.c(22): Error: C interpreter run time error: Ccode.c (22): Error -- memory violation : Exception ACCESS_VIOLATION received.
Ccode.c(22): Error: An exception was raised while calling invocation function in interpreter extension cciext.dll: System Exceptions: EXCEPTION_ACCESS_VIOLATION.