:: commit 89f03970dfb9570cf21d76da8e4ed0c4dad348ac

Kamila Szewczyk <kspalaiologos@gmail.com> — 2023-03-23 11:46

parents: e17c8daf5b

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;
     }
 
tab: 248 wrap: offon