X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9f091df92f0ee7966a3a75ff8461a134c93214a9..72fd59deec43430442b33740da0c8f127caba7da:/include/xbt/dict.h diff --git a/include/xbt/dict.h b/include/xbt/dict.h index 8153b3ede9..bb45bef50d 100644 --- a/include/xbt/dict.h +++ b/include/xbt/dict.h @@ -13,6 +13,7 @@ #include "xbt/misc.h" /* BEGIN_DECL */ #include "xbt/error.h" +#include "xbt/dynar.h" /* void_f_pvoid_t */ BEGIN_DECL() @@ -28,7 +29,7 @@ BEGIN_DECL() char buff[512]; sprintf(buff,"some very precious data"); - xbt_dict_set(mydict,"my data", strdump(buff), free); + xbt_dict_set(mydict,"my data", strdup(buff), free); sprintf(buff,"another good stuff"); xbt_dict_set(mydict,"my data", strdup(buff), free); // previous data gets erased (and freed) by second add \endverbatim