X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dff9e15c44ab6340d27215957c56fa72fad246a2..5830b3e635fa9e5a493d8cc9a2006bff50c67d50:/src/xbt/set.c diff --git a/src/xbt/set.c b/src/xbt/set.c index 0e56152a8d..2f79281dfb 100644 --- a/src/xbt/set.c +++ b/src/xbt/set.c @@ -182,6 +182,18 @@ xbt_set_elm_t xbt_set_get_by_name(xbt_set_t set, const char *name) return xbt_dict_get(set->dict, name); } +/** @brief Retrieve data by providing its name. + * + * \param set + * \param name Name of the searched cell + * \returns the data you're looking for, returns NULL if not found + */ +xbt_set_elm_t xbt_set_get_by_name_or_null(xbt_set_t set, const char *name) +{ + DEBUG1("Lookup key %s", name); + return xbt_dict_get_or_null(set->dict, name); +} + /** @brief Retrieve data by providing its name and the length of the name * * \param set