Reference/es_sd_add_v
Syntax
unsigned es_sd_add_v( struct es_sd *dict, unsigned *idx, char *str, char *end );
Arguments
struct es_sd *dict |
String dictionary. |
unsigned *idx |
string-id result. Passed by reference. |
const char *str |
Start of string. |
const char *end |
Pointer to one character beyond end of string. |
|
Description
Add a string to string dictionary dict . String starts at str and ends one character before end . idx is set to the integer-id corresponding to str . Returns zero if str already exists in dict . Returns the (non-zero) value of idx otherwise.
Use es_sd_add() to add a null-terminated string. Use es_sd_getstr() to retrieve null-terminated str from idx .
[Back To Reference]
[Back To Reference/es_sd]
|