aboutsummaryrefslogtreecommitdiff
path: root/manual/examples/longopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'manual/examples/longopt.c')
-rw-r--r--manual/examples/longopt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/manual/examples/longopt.c b/manual/examples/longopt.c
index b0cc64a..bf3857b 100644
--- a/manual/examples/longopt.c
+++ b/manual/examples/longopt.c
@@ -1,5 +1,5 @@
/* Example of Parsing Long Options with getopt_long.
- Copyright (C) 1991-2024 Free Software Foundation, Inc.
+ Copyright (C) 1991-2025 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -66,23 +66,23 @@ main (int argc, char **argv)
break;
case 'a':
- puts ("option -a\n");
+ puts ("option -a");
break;
case 'b':
- puts ("option -b\n");
+ puts ("option -b");
break;
case 'c':
- printf ("option -c with value `%s'\n", optarg);
+ printf ("option -c with value '%s'\n", optarg);
break;
case 'd':
- printf ("option -d with value `%s'\n", optarg);
+ printf ("option -d with value '%s'\n", optarg);
break;
case 'f':
- printf ("option -f with value `%s'\n", optarg);
+ printf ("option -f with value '%s'\n", optarg);
break;
case '?':