summaryrefslogtreecommitdiff
path: root/word.h
blob: 8b84ca2bbb34f36403156f03695a09ef52f4825e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _WORD_H_
#define _WORD_H_

#define WORDS_MAX 10000

struct word_t {
	unsigned long hash;
	char *name;
	int id;
	unsigned long long count;
	struct word_t *next;
};

void word_init();
struct word_t *word_get(char *name);
void word_free();

extern struct word_t *words;

#endif