Reference/es_sd_add
Syntax
unsigned es_sd_add( struct es_sd *dict, unsigned *idx, const char *str );
Arguments
struct es_sd *dict |
String dictionary. |
unsigned *idx |
string-id result. Passed by reference. |
const char *str |
Null-terminated string. |
Description
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]
|