Yûki - Compress working
This commit is contained in:
parent
e7305b7ab8
commit
c8a0b3f359
7 changed files with 104 additions and 140 deletions
|
|
@ -1,11 +1,12 @@
|
|||
#ifndef __MAIN_COMPRESS__
|
||||
#define __MAIN_COMPRESS__
|
||||
#include "arbre_de_codage/arbre_binaire.h"
|
||||
#include <stdio.h>
|
||||
#include "arbre_de_codage/arbre_binaire.h"
|
||||
#include "gestion_des_fichiers/gestion_fichiers.h"
|
||||
|
||||
struct lexique{
|
||||
char lettre;
|
||||
char *code;
|
||||
char code[256];
|
||||
};
|
||||
typedef struct lexique lex;
|
||||
typedef struct lexique* plex;
|
||||
|
|
@ -15,7 +16,7 @@ void frequence(arbre T[], FILE *file);
|
|||
void tri_tab(arbre T[],int n);
|
||||
void afficher_tab(arbre T[], int n);
|
||||
void init_tab(arbre T[], int n);
|
||||
void init_codage(plex Code[], int n);
|
||||
void get_lexique(FILE *file, plex Code[], arbre huff);
|
||||
void init_codage(plex Code[], int n);
|
||||
|
||||
#endif
|
||||
Reference in a new issue