aboutsummaryrefslogtreecommitdiffstats
path: root/man3/stdarg.3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-02-05 17:03:19 +0100
committerAlejandro Colomar <alx@kernel.org>2023-02-05 17:03:21 +0100
commitb957f81fddf0d038c365bce226a677de6ceb1bbb (patch)
treefbc19481b5548d067213ca2201a674682a53f192 /man3/stdarg.3
parent75c018a1d6474ffa1779ac8e8d98ad865c255aee (diff)
downloadman-pages-b957f81fddf0d038c365bce226a677de6ceb1bbb.tar.gz
Many pages: Use \[aq] instead of \(aq
This improves readability in the source code, since it delimits where the escape sequence ends. Cc: наб <nabijaczleweli@nabijaczleweli.xyz> Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com> Cc: Brian Inglis <Brian.Inglis@Shaw.ca> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man3/stdarg.3')
-rw-r--r--man3/stdarg.38
1 files changed, 4 insertions, 4 deletions
diff --git a/man3/stdarg.3 b/man3/stdarg.3
index 48a8914360..468a0904a3 100644
--- a/man3/stdarg.3
+++ b/man3/stdarg.3
@@ -252,7 +252,7 @@ with each format character based on the type.
#include <stdarg.h>
void
-foo(char *fmt, ...) /* \(aq...\(aq is C syntax for a variadic function */
+foo(char *fmt, ...) /* \[aq]...\[aq] is C syntax for a variadic function */
{
va_list ap;
@@ -263,15 +263,15 @@ foo(char *fmt, ...) /* \(aq...\(aq is C syntax for a variadic function */
va_start(ap, fmt);
while (*fmt)
switch (*fmt++) {
- case \(aqs\(aq: /* string */
+ case \[aq]s\[aq]: /* string */
s = va_arg(ap, char *);
printf("string %s\en", s);
break;
- case \(aqd\(aq: /* int */
+ case \[aq]d\[aq]: /* int */
d = va_arg(ap, int);
printf("int %d\en", d);
break;
- case \(aqc\(aq: /* char */
+ case \[aq]c\[aq]: /* char */
/* need a cast here since va_arg only
takes fully promoted types */
c = (char) va_arg(ap, int);