


Core C Data Types
The following table shows the supported C data types and their definitions:
fCType ODBC C Typedef C Type
SQL_C_CHAR UCHAR FAR * unsigned char FAR *
SQL_C_SSHORT SWORD short int
SQL_C_SLONG SDWORD long int
SQL_C_USHORT UWORD unsigned short int
SQL_C_ULONG UDWORD unsigned long int
SQL_C_FLOAT SFLOAT float
SQL_C_DOUBLE SDOUBLE double
SQL_C_BINARY UCHAR FAR * unsigned char FAR *
SQL_C_DATE DATE_STRUCT struct tagDATE_STRUCT {
SWORD year;
UWORD month;
UWORD day;}
SQL_C_TIME TIME_STRUCT struct tagTIME_STRUCT {
UWORD hour;
UWORD mimute;
UWORD second;}
SQL_C_TIMESTAMP TIMESTAMP_STRUCT
struct tagTIMESTAMP_STRUCT {
UWORD hour;
UWORD mimute;
UWORD second;
UDWORD fraction;}
SQL_C_BIT UCHAR unsigned char


