Simple hashtable implementation in C
#Usage
-
Create new hashtable with size of 23
-
Put a <key, value> pair, ex: <10, 50> #####
ht_put(ht, 10, 50);
or -
Get a value by key, ex: for key = 10
or
- Check for existence of a Key
or
- Delete a key 10
or
- Check the load factor of hashtable
or
- Finally dispose hashtable
or
Following methods are still in unstable state and does not guaranteed to work.
- Clear hashtable
Clears the entire hashtable (all keys will be deleted)
ht_clear(ht);
orht->clear(ht);