The integer host variable types
The following data types are provided for specifying integer
host variables of specific lengths.
- Data type
- Length
- int1
- One-byte integer
- int2
- Two-byte integer
- int4
- Four-byte integer
- mint
- Native integer data type for the machine
- mlong
- Native long integer data type for the machine, the size of which is equal to that of the pointer for the machine. The mlong data type is mapped to the long data type on Windows™ 32-bit and UNIX™ and Linux™ 32-bit and 64-bit platforms. It is mapped to the __int64 data type on Windows™ 64-bit platforms.
- MSHORT
- Native short integer data type for the machine
- MCHAR
- Native char data type for the machine Restriction: The preceding integer data types are reserved. Your programs must not use typedef or $typedef statements to define these data types.
The integer host variable data types are defined
in the ifxtypes.h file, which is automatically
included in your program when you compile it with the esql script.
Important: Many of the
Informix® ESQL/C library
functions have been changed to declare the Informix® integer
data types rather than the machine-specific types such as int, short,
and long. It is recommended that you use the Informix® integer
types when you call Informix®
ESQL/C library
functions.