Hashmap
Creating a new hashmap
hashmap* map = hashmap_create(20); // 20 buckets as the initial bucketsAdding data to a hashmap
hashmap_put(map, "test", (void*)"Hello world");Retrieving data from a hashmap
char* test = (char*)hashmap_get(map, "test");
printf("%s", test); // "Hello world"Removing data from a hashmap
Freeing the hashmap
Last updated