Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a xbt_dict_size function
[simgrid.git] / src / xbt / dict.c
index 3e2bd4c..2ddab30 100644 (file)
@@ -93,6 +93,13 @@ void xbt_dict_free(xbt_dict_t *dict) {
   }
 }
 
+/**
+ * Returns the amount of elements in the dict
+ */
+unsigned int xbt_dict_size(xbt_dict_t dict) {   
+      return dict->count;
+}
+
 /**
  * Returns the hash code of a string.
  */