Product Documentation

FairCom ISAM for C

Previous Topic

Next Topic

Extended Key Segment Definition Example

This example demonstrates a complete and simple ctKSEGDEF structure. The actual use of this structure is demonstrated in the API example below.

ctKSEGDEF ksgdef;

ksgdef.kseg_ssiz = 12; /* 12 bytes for the source */

ksgdef.kseg_type = ctKSEG_TYPE_UNICODE; /* ICU Unicode */

ksgdef.kseg_styp = ctKSEG_STYP_UTF16; /* UTF16 source data */

ksgdef.kseg_comp = ctKSEG_COMPU_A_LOWER; /* lower case sorts first */

strcpy(ksgdef.kseg_desc,"fr_CA"); /* French in Canada */

TOCIndex