SimGrid  3.21
Versatile Simulation of Distributed Systems
Dictionaries with non-nul terminated keys

Detailed Description

Those functions work even with non-null terminated keys.

Functions

void xbt_dict_set_ext (xbt_dict_t dict, const char *key, int key_len, void *data, void_f_pvoid_t free_ctn)
 
void * xbt_dict_get_ext (xbt_dict_t dict, const char *key, int key_len)
 
void * xbt_dict_get_or_null_ext (xbt_dict_t dict, const char *key, int key_len)
 
void xbt_dict_remove_ext (xbt_dict_t dict, const char *key, int key_len)
 

Function Documentation

◆ xbt_dict_set_ext()

void xbt_dict_set_ext ( xbt_dict_t  dict,
const char *  key,
int  key_len,
void *  data,
void_f_pvoid_t  free_ctn 
)

◆ xbt_dict_get_ext()

void* xbt_dict_get_ext ( xbt_dict_t  dict,
const char *  key,
int  key_len 
)

◆ xbt_dict_get_or_null_ext()

void* xbt_dict_get_or_null_ext ( xbt_dict_t  dict,
const char *  key,
int  key_len 
)

◆ xbt_dict_remove_ext()

void xbt_dict_remove_ext ( xbt_dict_t  dict,
const char *  key,
int  key_len 
)