aboutsummaryrefslogtreecommitdiff
path: root/6.3/tree.h
blob: c6ebc53c5a975a9564ef243a8fe0389451dbb988 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef TREE_H

#define MAXLINES 1000

struct tnode {
	char *word;
	int lc;
	int lines[MAXLINES];
	struct tnode *left;
	struct tnode *right;
};

#define TREE_H
#endif

struct tnode *addtree(struct tnode *p, char *w, int line);
void tprint(struct tnode *p);
void tfree(struct tnode *p);