Yûki - Compress working

This commit is contained in:
name 2019-12-15 20:15:55 +01:00
parent e7305b7ab8
commit c8a0b3f359
No known key found for this signature in database
GPG key ID: 03E8F3CF3183323A
7 changed files with 104 additions and 140 deletions

View file

@ -125,6 +125,21 @@ void init_codage(plex Code[], int n){
}
}
void compression(plex *Code,int n){
Bin_file *cmp;
cmp=Ouv_Bit("cmp.txt",'w');
printf("%s",(Code[0]->code)[0]);
int i;
for(i=0;i<n;i++){
char *s;
s=Code[i]->code;
while(s!='\0'){
Ec_Bit(cmp,s);
s++;
}
}
}
/*#########################################################################################################*/
/* Partie Gestion de fichiers */