The ifx_var_setlen() function

The ifx_var_setlen() function stores the length of the data buffer for an lvarchar or var binary host variable.

Syntax

var binary
mint ifx_var_setlen(var_bin, length)
   var binary **var_bin;
   int4 length
lvarchar
mint ifx_var_setlen(lvar, length)
   lvarchar **lvar;
   int4 length
length
The length, in bytes, of the data buffer to allocate for the var binary data.
var_bin
The address of the var binary host variable.
lvar
The address of the lvarchar pointer host variable.

Usage

The length that the ifx_var_setlen() function sets is the number of bytes to allocate for the data buffer of the lvar or var_bin host variable. Call this function to change the size of the data buffer that the ifx_var_alloc() function allocated for the lvar or var_bin host variable.

Return codes

0
The function was successful.
<0
The function was not successful and the return value indicates the cause of the error.