Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/tools/hashtable.h
7854 views
1
#ifndef HASHTABLE_H_
2
#define HASHTABLE_H_
3
4
typedef unsigned int (*HashFunc)(const void *item);
5
typedef int (*HashValueCmpFunc)(const void *a, const void *b);
6
struct HashTable;
7
8
struct HashTable *hashtable_new(HashFunc func, HashValueCmpFunc cmp, int size, int valueSize);
9
void hashtable_free(struct HashTable *ht);
10
void hashtable_insert(struct HashTable *ht, const void *value);
11
void *hashtable_query(struct HashTable *ht, const void *value);
12
13
#endif // HASHTABLE_H_
14
15