Share this page

# lrs_hex_string_to_int

Example: lrs_hex_string_to_int | Conversion Functions

Converts a hex string to an integer.

    int lrs_hex_string_to_int( char* buff, long length, int* mpiOutput );

Input |
buff | A pointer to the string you want to convert.
length | The length of the data.
Output |
mpiOutput | A pointer to the resulting integer.

The lrs_hex_string_to_int converts a hexadecimal string to an integer. You specify a pointer to a buffer containing the string you want to convert, and the length of the string to convert. This function translates the string and assigns the value to the integer reference.

## Return Values

If this function fails, it returns NULL. If it succeeds, it returns a pointer to the converted buffer. You can also retrieve the converted buffer using lrs_get_user_buffer .

## 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: