aboutsummaryrefslogtreecommitdiffstats
path: root/man3/stdarg.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2008-06-05 17:52:37 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2008-06-05 17:52:37 +0000
commitf8a07a215402da181c4c29c48e034e40f826cd1f (patch)
tree2cfa720b210306738043188a7584196cfd9556f4 /man3/stdarg.3
parent26868e5b2676c542ba69abc5d255d67ba2a977fe (diff)
downloadman-pages-f8a07a215402da181c4c29c48e034e40f826cd1f.tar.gz
s/'/\\'/ to improve rendering in UTF-8.
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 2eec7cde9f..03e75f68dd 100644
--- a/man3/stdarg.3
+++ b/man3/stdarg.3
@@ -249,7 +249,7 @@ foo(va_alist)
.in
On some systems,
.I va_end
-contains a closing '}' matching a '{' in
+contains a closing \'}\' matching a \'{\' in
.IR va_start ,
so that both macros must occur in the same function, and in a way
that allows this.
@@ -289,15 +289,15 @@ foo(char *fmt, ...)
va_start(ap, fmt);
while (*fmt)
switch (*fmt++) {
- case 's': /* string */
+ case \'s\': /* string */
s = va_arg(ap, char *);
printf("string %s\en", s);
break;
- case 'd': /* int */
+ case \'d\': /* int */
d = va_arg(ap, int);
printf("int %d\en", d);
break;
- case 'c': /* char */
+ case \'c\': /* char */
/* need a cast here since va_arg only
takes fully promoted types */
c = (char) va_arg(ap, int);