Add structure of the binary tree used for huffman, along with stdio and string headers

This commit is contained in:
Mylloon 2021-12-18 11:55:30 +01:00
parent 2077d41541
commit 2aaf284d9b

16
huffman.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef _GLOBAL_HUFFMAN_H
#define _GLOBAL_HUFFMAN_H 1
// On inclus nos dépendances que tous le programme utilisera
#include <stdio.h>
#include <string.h>
// Structure du noeud
typedef struct noeud_huffman {
char lettre;
int frequence;
struct noeud_huffman *gauche;
struct noeud_huffman *droite;
} *Noeud;
#endif // <huffman.h> inclus