informix
INFORMIX-ESQL/C Programmer's Manual
ESQL/C Function Library

ifx_var_flag()

The ifx_var_flag() function determines how memory is allocated for the data buffer of an lvarchar or var binary host variable.

Syntax

var binary

lvarchar

Usage

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.

Return Codes

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

Related Functions

ifx_var_alloc(), ifx_var_dealloc()


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