16typedef struct dico_s dico_t;
void(* destroy)(void *value)
dico_node_t * dico_get_elem_ptr(dico_t *dico, void *value)
Get node where value equal value in node.
dico_t * dico_create(void)
create a new dico
dico_t * dico_rem_ptr(dico_t *dico, void *value)
Rem a key and its value.
dico_t * dico_add(dico_t *dico, char const *key, void *value, void(*destroy)(void *value))
add a key/value
void * dico_get_value(dico_t *dico, char const *key)
Get value of pair key.
void dico_destroy(dico_t *dico)
delete a dico
dico_t * dico_add_elem(dico_t *dico, dico_node_t *elem)
add an elem (key/value/destroy)
dico_node_t * dico_get_elem(dico_t *dico, char const *key)
Get node of pair key.
dico_t * dico_rem(dico_t *dico, char const *key)
Rem a key and its value.
void * dico_pop_value(dico_t *dico, char const *key)
remove a key and return the value
dico_node_t * dico_pop_elem(dico_t *dico, char const *key)
remove a key and return the node