informix
INFORMIX-ESQL/C Programmer's Manual
Working with Opaque Data Types of the Universal Data Option

The lvarchar pointer and var binary Library Functions

The following library functions are available in ESQL/C to access the data buffer of an lvarchar pointer or var binary host variable

Function Name Purpose Page
Reference
ifx_var_alloc() Allocates memory for the data buffer. B-250
ifx_var_dealloc() Deallocates memory for the data buffer. B-252
ifx_var_flag() Determines whether ESQL/C or the application handles memory allocation for the data buffer. B-254
ifx_var_getdata() Returns the contents of the data buffer. B-256
ifx_var_getlen() Returns the length of the data buffer. B-257
ifx_var_isnull() Checks whether the data in the data buffer is null. B-258
ifx_var_setdata() Sets the data for the data buffer. B-259
ifx_var_setlen() Sets the length of the data buffer. B-261
ifx_var_setnull() Sets the data in the data buffer to a null value. B-263
.

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 ESQL/C programs that use them.


INFORMIX-ESQL/C Programmer's Manual, Version 9.21
Copyright © 1999, Informix Software, Inc. All rights reserved