Commit bf140947 by Rudolf

Format file size comparison nicely

Also remove variables as I had something in mind I am not planning to do.
parent cb84a6fd
Showing with 4 additions and 5 deletions
...@@ -143,11 +143,10 @@ int main(int argc, char *argv[]) ...@@ -143,11 +143,10 @@ int main(int argc, char *argv[])
else { else {
ret = encode_file(input, output); ret = encode_file(input, output);
long insize = get_file_size(input); printf("Original file %-15s size: %ld bytes\n",
long outsize = get_file_size(output); infile, get_file_size(input));
printf("Huffman file %-15s size: %ld bytes\n",
printf("Original file size: %ld bytes\n", insize); outfile, get_file_size(output));
printf("Huffman file size: %ld bytes\n", outsize);
} }
fclose(input); fclose(input);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment