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

ifx_var_setlen()

The ifx_var_setlen() function stores the length of the data buffer for an lvarchar or var binary host variable.

Syntax

var binary

lvarchar

Usage

The length that the ifx_var_setlen() function sets is the number of bytes to allocate for the data buffer of the lvar or var_bin host variable. Call this function to change the size of the data buffer that the ifx_var_alloc() function allocated for the lvar or var_bin host variable.

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_getlen(), ifx_var_setdata()


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