summaryrefslogtreecommitdiff
path: root/word.h
diff options
context:
space:
mode:
Diffstat (limited to 'word.h')
-rw-r--r--word.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/word.h b/word.h
new file mode 100644
index 0000000..b0c5d15
--- /dev/null
+++ b/word.h
@@ -0,0 +1,17 @@
+#ifndef _WORD_H_
+#define _WORD_H_
+
+#define WORDS_MAX 10000
+
+struct word_t {
+ unsigned long hash;
+ char *name;
+ unsigned long count;
+ struct word_t *next;
+};
+
+void word_init();
+struct word_t *word_get(char *name);
+void word_free();
+
+#endif