X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9642eb5f3dcd31fe02bb21cf90229e6f083346e9..e4618d871cc83f0f8e1b5590e7893a009ba02688:/src/xbt/dict.c diff --git a/src/xbt/dict.c b/src/xbt/dict.c index 3e2bd4c35e..2ddab300f2 100644 --- a/src/xbt/dict.c +++ b/src/xbt/dict.c @@ -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. */