Add prototype for creating new nodes for the tree
This commit is contained in:
parent
2aaf284d9b
commit
2b56ac0f1e
2 changed files with 9 additions and 0 deletions
6
huffman.c
Normal file
6
huffman.c
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include "huffman.h"
|
||||
|
||||
Noeud nouveauNoeud(char lettre, int frequence, Noeud noeudA, Noeud noeudB) {
|
||||
|
||||
return noeudA;
|
||||
}
|
|
@ -13,4 +13,7 @@ typedef struct noeud_huffman {
|
|||
struct noeud_huffman *droite;
|
||||
} *Noeud;
|
||||
|
||||
// Permet de créer un nouveau noeud
|
||||
Noeud nouveauNoeud(char lettre, int frequence, Noeud A, Noeud B);
|
||||
|
||||
#endif // <huffman.h> inclus
|
||||
|
|
Reference in a new issue