add the program name to compress-file and decompress-file
diff --git a/examples/compress-file.c b/examples/compress-file.c
index c6338d6..5fab2d4 100644
--- a/examples/compress-file.c
+++ b/examples/compress-file.c
@@ -11,7 +11,7 @@
int main(int argc, char ** argv) {
if (argc != 3) {
- printf("Usage: %s <input file> <output file>\n");
+ printf("Usage: %s <input file> <output file>\n", argv[0]);
return 1;
}
diff --git a/examples/decompress-file.c b/examples/decompress-file.c
index 65ec477..d75e0b5 100644
--- a/examples/decompress-file.c
+++ b/examples/decompress-file.c
@@ -9,7 +9,7 @@
int main(int argc, char ** argv) {
if (argc != 3) {
- printf("Usage: %s <input file> <output file>");
+ printf("Usage: %s <input file> <output file>", argv[0]);
return 1;
}
