The ifx_var_getdata() function
The ifx_var_getdata() function returns the data from an lvarchar or var binary host variable.
Syntax
var binary
void *ifx_var_getdata(var_bin)
var binary **var_bin;
lvarchar
void *ifx_var_getdata(lvar)
lvarchar **lvar;
- var_bin
- The address of the var binary host variable whose data is retrieved.
- lvar
- The address of the lvarchar pointer host variable whose data is retrieved.
Usage
The ifx_var_getdata() function returns the data as a void * pointer. Your Informix® ESQL/C application must cast this pointer to the correct data type. When you use ifx_var_getdata() on an lvarchar pointer, you must cast the returned (void) pointer to a C-language character pointer (char *).
Return codes
- Null pointer
- The function was not successful.
- Valid pointer to the data buffer
- The function was successful.