WYRDTEK Home Features Reference Downloads About


Reference/es_sd_getid

Syntax

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

Arguments

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

Description

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]