WYRDTEK Home Features Reference Downloads About



unsigned es_sd_getid( struct es_sd *dict, const char *str );


struct es_sd *dict String dictionary.
const char *str Null terminated string.


Retrieve string-id by null terminated string str from string dictionary dict. Returns string-id (in the range 1..N, where N is the number of strings stored in the dictionary) or zero if the string has not been previously added to the dictionary via es_sd_add() or es_sd_add_v().

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

[Back To Reference] [Back To Reference/es_sd]