Files
advanced_C_standard_library/include/acl/hashmap.h
2020-08-02 15:11:32 +02:00

16 lines
470 B
C

#ifndef _acl_hashmap_h
#define _acl_hashmap_h
#include <stddef.h>
union acl_hashmap_meta {
void *dummy_ptr;
struct {
size_t bucketCount;
size_t sizeOneElement;
size_t keyBits;
};
};
/* set keySize to NULL for a dynamic keySize */
union acl_hashmap_meta* acl_hashmap_create(size_t bucketCount, size_t sizeOneElement, size_t keySize);
void acl_hashmap_put(union acl_hashmap_meta *hashmap_meta, void *key, void *element);
#endif