|
The ifx_var_flag() function determines how memory is allocated for the data buffer of an lvarchar or var binary host variable.
The value of the flag argument is the allocation flag. It determines who handles memory allocation for the data of the var_bin host variable, as follows:
If you do not call the ifx_var_flag() function for an lvarchar or var binary host variable, ESQL/C allocates memory for its data buffer. Whether you allocate memory for the lvarchar or var binary variable, or allow ESQL/C to do it for you, you must free the memory with the ifx_var_dealloc() function.
| 0 | The function was successful. |
| <0 | The function was not successful and the return value indicates the cause of the error. |
ifx_var_alloc(), ifx_var_dealloc()