diff options
author | epochqwert <epoch@hacking.allowed.org> | 2015-03-31 13:38:31 -0500 |
---|---|---|
committer | epochqwert <epoch@hacking.allowed.org> | 2015-03-31 13:38:31 -0500 |
commit | 3b1466afd58e7cfbf5be09df8cfc52409171f5d3 (patch) | |
tree | 83ff40686c230866ac8c245366cacf4c9ed019cf /libhashtable/hashtable.h | |
parent | 7f43ddc3b96848b1a788a86ae663279dead86f27 (diff) | |
download | segfault-3b1466afd58e7cfbf5be09df8cfc52409171f5d3.tar.gz segfault-3b1466afd58e7cfbf5be09df8cfc52409171f5d3.zip |
moved libhashtable and libirc into their own repos.
Diffstat (limited to 'libhashtable/hashtable.h')
-rw-r--r-- | libhashtable/hashtable.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/libhashtable/hashtable.h b/libhashtable/hashtable.h deleted file mode 100644 index a58a392..0000000 --- a/libhashtable/hashtable.h +++ /dev/null @@ -1,27 +0,0 @@ -struct entry {//linked list node. - char *original; - void *target; - struct entry *prev;// doubly linked list. why? - struct entry *next; -}; - -struct hitem { - struct entry *ll; -}; - -struct hashtable { - int kl;//number of keys in the table - struct hitem **bucket; - int *keys; -}; -unsigned short hash(char *key);//maybe use a seeded rand()? :) Thanks FreeArtMan -void inittable(struct hashtable *ht,int tsize); -void ll_delete(struct entry *ll); -void ll_destroy(struct entry *ll); -void ht_destroy(struct hashtable *ht); -void ht_freevalues(struct hashtable *ht); -int ht_setkey(struct hashtable *ht,char *key,void *value); -struct entry *ll_getentry(struct entry *start,char *msg); -struct entry *ht_getentry(struct hashtable *ht,char *key); -struct entry *ht_getnode(struct hashtable *ht,char *msg); -void *ht_getvalue(struct hashtable *ht,char *msg); |