mi_string *mi_lvarchar_to_string(lv_ptr)
mi_lvarchar *lv_ptr;
The mi_lvarchar_to_string( ) function returns a null-terminated string for the data in the varying-length structure that lv_ptr references. This function allocates memory for the string it returns. Because mi_lvarchar_to_string( ) uses mi_alloc( ), this string memory has the current memory duration. You must use the mi_free( ) function to free this string memory when it is no longer needed.
The mi_lvarchar_to_string( ) function allocates the string that it creates with the current memory duration.
See also the descriptions of mi_alloc( ), mi_free( ), mi_new_var( ), mi_string_to_lvarchar( ), mi_var_copy( ), mi_var_free( ), and mi_var_to_buffer( ).