tree.h
379 Bytes
#include <stdio.h>
#include <stdlib.h>
typedef struct node {
int val;
int fin;
int nbr_fils;
struct node** fils;
}Node, *PtNode, *Tree;
void cons_tree(struct node **, int);
void mk_empty_tree(struct node **);
int is_leaf(struct node *);
void add(struct node ***, char* ,int ,int);
void load_tree(FILE *, struct node ***);
void free_tree(struct node **);