mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 13:48:21 +00:00
hashtable: get entry by offset
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct{
|
||||
void* next;
|
||||
@@ -16,6 +17,7 @@ typedef struct{
|
||||
hashtableentry* entries;
|
||||
} hashtable;
|
||||
|
||||
void* hashtable_fromoffset(hashtable*, uintmax_t, char*);
|
||||
bool hashtable_init(hashtable*, size_t);
|
||||
bool hashtable_insert(hashtable*, char*, void*);
|
||||
bool hashtable_remove(hashtable*, char*);
|
||||
|
||||
Reference in New Issue
Block a user