The lvarchar pointer and var binary library functions
The following library functions are available in to access the
data buffer of an lvarchar pointer or var binary host
variable.
Function name | Purpose | See |
---|---|---|
ifx_var_alloc() | Allocates memory for the data buffer. | The ifx_var_alloc() function |
ifx_var_dealloc() | Deallocates memory for the data buffer. | The ifx_var_dealloc() function |
ifx_var_flag() | Determines whether ESQL/C or the application handles memory allocation for the data buffer. | The ifx_var_flag() function |
ifx_var_getdata() | Returns the contents of the data buffer. | The ifx_var_getdata() function |
ifx_var_getlen() | Returns the length of the data buffer. | The ifx_var_getlen() function |
ifx_var_isnull() | Checks whether the data in the data buffer is null. | The ifx_var_isnull() function |
ifx_var_setdata() | Sets the data for the data buffer. | The ifx_var_setdata() function |
ifx_var_setlen() | Sets the length of the data buffer. | The ifx_var_setlen() function |
ifx_var_setnull() | Sets the data in the data buffer to a null value. | The ifx_var_setnull() function |
These lvarchar pointer and var binary functions are defined in the sqlhdr.h header file so you do not need to include a special header file in your programs that use them.