Share this page

# lr_save_var

Saves a variable length string to a parameter.

## C Language

    int lr_save_var( char *param_value, unsigned long const value_len, unsigned long const options, char *param_name );

Example: lr_save_var | Parameter Functions

## Arguments

Name | Comments
--- | ---
param_value | The value to assign to a parameter.
value_len | The length of the value in bytes.
options | A parameter option, currently 0.
param_name | The name of the parameter.

The lr_save_var function assigns the specified variable length string to a parameter. This function is useful in Correlating Statements. To determine the value of the parameter, use the lr_eval_string function.

Do not:

- save an input buffer that contains null or other binary data.
- pass a value_len longer than the actual data.

In these cases, lr_save_var saves binary data. The behavior of a script that uses the parameter value is indeterminate.

## Return Values

This function returns 0 on success and 1 on failure.

## Parameterization

You cannot use standard parameterization for any arguments in this function.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: