hashmap icon indicating copy to clipboard operation
hashmap copied to clipboard

Templated type-safe hashmap implementation in C using open addressing and linear probing for collision resolution.

Results 4 hashmap issues
Sort by recently updated
recently updated
newest added

After creating a hashmap the hb->table pointer is null. Any operation will produce memory errors due to this. calling hashmap_reserve will result in a memory error due to the null...

Can you provide an interface "hashmap_set" for modifying the key, the function is to add the key if it does not exist, and modify it if it exists. Thank you...

enhancement

Because of the type of the free function this takes the most common use case of just passing 'free' produces a warning ``` Incompatible function pointer types initializing 'typeof (((&skined_anim_mngr.map))->map_types->t_key_free_func)'...

```c root@vps103211:~/projects# gcc -c src/nnetwork.c -o obj/nnetwork.o -lhashmap root@vps103211:~/projects# gcc -c src/nnetwork.c -o obj/nnetwork.o -lhashmap --std=c2x In file included from src/../libs/nnetwork.h:5, from src/nnetwork.c:1: src/nnetwork.c: In function ‘init’: src/nnetwork.c:19:3: error: expected...