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[])
else {
ret = encode_file(input, output);
long insize = get_file_size(input);
long outsize = get_file_size(output);
printf("Original file size: %ld bytes\n", insize);
printf("Huffman file size: %ld bytes\n", outsize);
printf("Original file %-15s size: %ld bytes\n",
infile, get_file_size(input));
printf("Huffman file %-15s size: %ld bytes\n",
outfile, get_file_size(output));
}
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