WYRDTEK Home Features Reference Downloads About



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


struct es_sd *dict String dictionary.
unsigned *idx string-id result. Passed by reference.
const char *str Null-terminated string.


Add a null-terminated string str to string dictionary dict. idx is set to the string-id corresponding to str. Returns zero if str already exists in dict. Returns the (non-zero) value of idx otherwise.

Use es_sd_add_v() to add a non null-terminated string. Use es_sd_getstr() to retrieve str from idx.

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