The ifx_var_setdata() function

The ifx_var_setdata() function stores data in an lvarchar or var binary host variable.

Syntax

var binary
mint ifx_var_setdata(var_bin, buffer, buf_len)
   var binary **var_bin;
   char *buffer;
   int4 buf_len;
lvarchar
mint ifx_var_setdata(lvar, buffer, buf_len)
   lvarchar **lvar;
   char *buffer;
   int4 buf_len;
buffer
A character buffer that contains the data to store in the lvar or var_bin host variable.
buf_len
The length, in bytes, of the buffer.
var_bin
The address of the var binary host variable.
lvar
The address of the lvarchar pointer host variable.

Usage

The ifx_var_setdata() function stores the data in buffer in the data buffer of the lvar or var_bin host variable. For an lvarchar pointer host variable, expects the data inside buffer to be null-terminated ASCII data.

Return codes

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