Blame view

tree.h 401 Bytes
500d264d   bjeanlou   create tree ch Sl...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  #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
  tree* make_empty_tree();
  tree* cons_tree();
  tree* load_tree(FILE*,tree*);
  int is_empty(tree);
  char value(tree);
  //char*? values(tree);
  void print_all(tree);
  int isIn(tree,string);
  
  
  
  
  
  #endif //TREE_H