aboutsummaryrefslogtreecommitdiffstats
path: root/man3/stdarg.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2012-09-24 10:23:07 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2012-09-24 10:23:07 +0200
commit9f8e673e623dc6fbae517885f4161a29e9c24d1d (patch)
tree640be3c83321e9a56832c4532bf0b1ba780cfba3 /man3/stdarg.3
parent6c1544c1325437c9d1dc53c73c6c5fe72d3f62b3 (diff)
downloadman-pages-9f8e673e623dc6fbae517885f4161a29e9c24d1d.tar.gz
time.1, atexit.3, bsearch.3, dlopen.3, envz_add.3, errno.3, fmtmsg.3, getgrent_r.3, getline.3, getmntent.3, getnameinfo.3, getpass.3, getpwent_r.3, gets.3, isalpha.3, printf.3, puts.3, recno.3, scandir.3, stdarg.3, sysconf.3, termios.3, wordexp.3, null.4, core.5, dir_colors.5, issue.5, proc.5, termcap.5, utmp.5, ascii.7, cpuset.7, glob.7, man-pages.7, man.7, mdoc.7, mdoc.samples.7, regex.7: Global fix: use \\ rather than \e for literal backslash
Reported-by: Jan Engelhardt <jengelh@inai.de> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/stdarg.3')
-rw-r--r--man3/stdarg.36
1 files changed, 3 insertions, 3 deletions
diff --git a/man3/stdarg.3 b/man3/stdarg.3
index cea9085c66..4723310409 100644
--- a/man3/stdarg.3
+++ b/man3/stdarg.3
@@ -291,17 +291,17 @@ foo(char *fmt, ...)
switch (*fmt++) {
case \(aqs\(aq: /* string */
s = va_arg(ap, char *);
- printf("string %s\en", s);
+ printf("string %s\\n", s);
break;
case \(aqd\(aq: /* int */
d = va_arg(ap, int);
- printf("int %d\en", d);
+ printf("int %d\\n", d);
break;
case \(aqc\(aq: /* char */
/* need a cast here since va_arg only
takes fully promoted types */
c = (char) va_arg(ap, int);
- printf("char %c\en", c);
+ printf("char %c\\n", c);
break;
}
va_end(ap);