Implemented hash_count()

This commit is contained in:
Pierre Pronchery 2014-05-07 02:40:28 +02:00
parent d2121b1bb4
commit 8ef9a253c0

View File

@ -133,6 +133,13 @@ int hash_compare_string(void const * value1, void const * value2)
/* accessors */ /* accessors */
/* hash_count */
size_t hash_count(Hash * hash)
{
return array_count(hash->entries);
}
/* hash_get */ /* hash_get */
void * hash_get(Hash * hash, void const * key) void * hash_get(Hash * hash, void const * key)
{ {