WYRDTEK Home Features Reference Downloads About


Reference/es_sdc_getid

Syntax

unsigned es_sdc_getid( struct es_sdc *cdict, const char *str );

Arguments

struct es_sdc *cdict Compressed string dictionary.
const char *str Null terminated string.

Description

Retrieve string-id by null terminated string str from compressed string dictionary cdict. Returns string-id (in the range 1..N, where N is the number of strings stored in the dictionary). If the string does not exist in the compressed dictionary the behaviour is undefined.

Use es_sdc_getid_v() to retrieve string-id by non null-terminated string.

[Back To Reference] [Back To Reference/es_sdc]