The mi_var_to_buffer() function

The mi_var_to_buffer() function copies data from a varying-length structure to a buffer.

Syntax

void mi_var_to_buffer(varlen_ptr, buffer)
   mi_lvarchar *varlen_ptr;
   char *buffer;
varlen_ptr
A pointer to the varying-length structure.
buffer
A pointer to the user-allocated buffer.
Valid in client LIBMI application? Valid in user-defined routine?
Yes Yes

Usage

The mi_var_to_buffer() function copies data from the varying-length structure that varlen_ptr references to a user-allocated buffer that buffer references. The function copies data up to the data length specified in the varying-length descriptor. You can obtain the current data length with the mi_get_varlen() function. You must ensure that the buffer that buffer references is large enough to hold the data.

Return values

None.