ESQL/C data type constants

You assign the Informix® ESQL/C data type to a host variable in the Informix ESQL/C program. The following table shows these constants.
Table 1. Constants for ESQL/C host-variable data types
ESQL/C data type Constant Integer value
char CCHARTYPE 100
short int CSHORTTYPE 101
int4 CINTTYPE 102
long CLONGTYPE 103
float CFLOATTYPE 104
double CDOUBLETYPE 105
dec_t or decimal CDECIMALTYPE 107
fixchar CFIXCHARTYPE 108
string CSTRINGTYPE 109
date CDATETYPE 110
dec_t or decimal CMONEYTYPE 111
datetime or dtime_t CDTIMETYPE 112
ifx_loc_t or loc_t CLOCATORTYPE 113
varchar CVCHARTYPE 114
intrvl_t or interval CINVTYPE 115
char CFILETYPE 116
int8 CINT8TYPE 117
collection CCOLTYPE 118
lvarchar CLVCHARTYPE 119
fixed binary CFIXBINTYPE 120
var binary CVARBINTYPE 121
boolean CBOOLTYPE 122
row CROWTYPE 123

You can use these Informix ESQL/C data types as arguments for some of the functions in the Informix ESQL/C library. For example, both the rtypalign() and rtypmsize() functions require data type values as arguments.