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

struct tnode {
	char *word;
	int count;
	struct tnode *left;
	struct tnode *right;
};

#define TREE_H
#endif

struct tnode *addtree(struct tnode *p, char *w);
int tlstore(struct tnode *p, struct tnode *l[], int lim);
void tlsort(struct tnode *l[], int lim);
void printtl(struct tnode *l[], int lim);
void tfree(struct tnode *p);