From 3efd96ff79f4f5669c3422a1f592f09176c77121 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 15 Aug 2009 18:07:02 +0200 Subject: Added a hash table to keep track of words. Moved the sdbm hash function into sdbm.c. Init and free users and words inside the channel loop. Increased the size of the user hash table to 1000. --- sdbm.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 sdbm.h (limited to 'sdbm.h') diff --git a/sdbm.h b/sdbm.h new file mode 100644 index 0000000..5f9228b --- /dev/null +++ b/sdbm.h @@ -0,0 +1,6 @@ +#ifndef _SDBM_H_ +#define _SDBM_H_ + +unsigned long sdbm(char *str); + +#endif -- cgit v1.2.3