40
39
and can be reused by the caller. The pointer is just stored.
41
40
This function returns non-0 in case of memory allocation
42
41
errors. If the key was previously in use the value
44
43
int dict_put(DICT *dict,const char *key,void *value);
46
45
/* Look up a key in the dictionary and return the associated
47
46
value. NULL is returned if the key is not found in the dictionary.
49
48
void *dict_get(DICT *dict,const char *key)
52
56
/* Delete a key-value association from the dictionary.
54
58
/*void dict_del(DICT *dict,const char *key);*/
56
60
/* Remove the dictionary from memory. All allocated storage