main.c
435 Bytes
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "arbre.h"
int main () {
FILE* fp = fopen("words-no-accents","r"); //amelioration entrée
if(fp == NULL){ return EXIT_FAILURE;} //File is not readable
struct dico *mondico=malloc(sizeof(struct dico));
charger_arbre(fp,&mondico);
affiche_dico(mondico);
free_dico(mondico);
fclose(fp);
return 0;
}