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

ifx_var_setdata()

The ifx_var_setdata() function stores data in an lvarchar or var binary host variable.

Syntax

var binary

lvarchar

Usage

The ifx_var_setdata() function stores the data in buffer in the data buffer of the lvar or var_bin host variable. For an lvarchar pointer host variable, ESQL/C expects the data inside buffer to be null-terminated ASCII data.

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_getdata(), ifx_var_setlen()


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