diff --git a/main.c b/main.c index 6fa7101..24167eb 100644 --- a/main.c +++ b/main.c @@ -93,6 +93,7 @@ static void usage(void) { fprintf(stderr, + "\nPcompress Version %f\n\n" "Usage:\n" "1) To compress a file:\n" " %s -c [-l ] [-s ] \n" @@ -127,7 +128,7 @@ usage(void) "6) Number of threads can optionally be specified: -t <1 - 256 count>\n" "7) Pass '-M' to display memory allocator statistics\n" "8) Pass '-C' to display compression statistics\n\n", - exec_name, exec_name, exec_name, exec_name, exec_name, exec_name); + UTILITY_VERSION, exec_name, exec_name, exec_name, exec_name, exec_name, exec_name); } void diff --git a/pcompress.h b/pcompress.h index 05cdfc7..a0b3f48 100644 --- a/pcompress.h +++ b/pcompress.h @@ -39,6 +39,7 @@ extern "C" { #define MIN_CHUNK 2048 #define VERSION 2 #define FLAG_DEDUP 1 +#define UTILITY_VERSION 0.5 #define COMPRESSED 1 #define UNCOMPRESSED 0