A generic hashmap implementation done in C17 from scratch
- Storing Key(char *) and value(int)
- Custom hashing of the keys and dynamic resizing of the hashmap
hashmap.ccontains all the code and functions for the Hashmap
struct HASHMAP *createHashmap()| Creates a hashmap and gives the pointer to itvoid putInHashmap(char *k, int v, struct HASHMAP **hashmap)| Takes key, value and the pointer to the variable of hashmap, and puts the value in itint getKeyValue(char *key, int *targetvar, struct HASHMAP *hashmap)| Returns 1 if found , 0 if not found ; puts the value found in the target varvoid freeHashmap(struct HASHMAP *hashmap)| Frees the hasmap from memoryvoid removeKey(char *key, struct HASHMAP *hashmap)| Removes a key from the hash map