Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Dumping function. As usual, for debuging purpose
[simgrid.git] / include / xbt / dict.h
index 8153b3e..bb45bef 100644 (file)
@@ -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