aboutsummaryrefslogblamecommitdiff
path: root/6.3/tree.h
blob: 0b9091331ae176ea1a0c1137382f095eef071782 (plain) (tree)
1
2
3
4
5
6
7
8
9

              

                   
                               



                            




                             


              
                                                             

                             
#ifndef TREE_H

struct tnode {
	char *word;
	struct linklist *lines;
	struct tnode *left;
	struct tnode *right;
};

struct linklist {
	int linenum;
	struct linklist *ptr;
};

#define TREE_H
#endif

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