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