informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_var_to_buffer()

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

Syntax

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.

Related Topics

See the description of the following functions: mi_lvarchar_to_string(), mi_new_var(), mi_string_to_lvarchar(), mi_var_copy(), and mi_var_free().

For more information, see Obtaining Varying-Length Data.


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved