skuska
This commit is contained in:
parent
1e6fb33624
commit
76c9eef337
@ -141,7 +141,14 @@ int compress_1(const char* input_file_name, const char* output_file_name) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
fwrite(data, 1, size, output_file);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
for (size_t i = 0; i < size; i++) {
|
||||||
|
fputs(codes[data[i]], output_file);
|
||||||
|
}
|
||||||
|
|
||||||
fclose(output_file);
|
fclose(output_file);
|
||||||
|
|
||||||
printf("Compressing using Huffman coding...\n");
|
printf("Compressing using Huffman coding...\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user