ESQL/C header files

Header files are provided to support some of the functions and data types of the Informix® ESQL/C library.

Header file Contents
datetime.h Structure and macro definitions for DATETIME and INTERVAL data types
decimal.h Structure and macro definitions for DECIMAL and MONEY data types
int8.h Declarations for structure and Informix ESQL/C library functions for the INT8 data type
sqlca.h Structure definition that Informix ESQL/C uses to store error-status codes

This structure enables you to check for the success or failure of SQL statements.

sqlda.h Structure definition for value pointers and descriptions of dynamically defined variables
sqlhdr.h Function prototypes of all Informix ESQL/C library functions
sqlstype.h Definitions of strings that correspond to SQL statements

Informix ESQL/C uses these strings when your program contains a DESCRIBE statement.

sqltypes.h Integer constants that correspond to Informix ESQL/C language and SQL data types

ESQL/C uses these constants when your program contains a DESCRIBE statement.

sqlxtype.h Integer constants that correspond to C language and SQL data types that Informix ESQL/C uses in X/Open mode, when your program contains a DESCRIBE statement
varchar.h Macros that you can use with the VARCHAR data type
Important: The mitypes.h header file automatically includes the datetime.h, decimal.h, and int8.h header files. In turn, the milib.h header file automatically includes mitypes.h, and mi.h automatically includes milib.h. Therefore, you automatically have access to the information in these Informix ESQL/C header files when you include mi.h in your DataBlade® API module.