Blame view

tree.h 504 Bytes
500d264d   bjeanlou   create tree ch Sl...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  #ifndef TREE_H
  #define TREE_H
  
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
  #include "Slist.h"
  
  typedef
    struct node{
      char val;
      cell* next;}
  //defs
    node, *tree;
  
  
  //functions
2a10535a   bjeanlou   end Lesson 1
18
19
20
21
22
  tree make_empty_tree();
  tree make_tree(char);
  int is_empty(tree);
  int is_leaf(tree);
  int is_end(tree);
500d264d   bjeanlou   create tree ch Sl...
23
24
  tree* cons_tree();
  tree* load_tree(FILE*,tree*);
500d264d   bjeanlou   create tree ch Sl...
25
26
  //char*? values(tree);
  void print_all(tree);
2a10535a   bjeanlou   end Lesson 1
27
28
  int isIn_tree(tree,char);
  int strIsIn_tree(tree,string);
500d264d   bjeanlou   create tree ch Sl...
29
30
  
  
2a10535a   bjeanlou   end Lesson 1
31
32
33
  /*
  words end with '\0' and 
  */
500d264d   bjeanlou   create tree ch Sl...
34
35
  
  #endif //TREE_H