aboutsummaryrefslogtreecommitdiffstats
path: root/man3/stdarg.3
diff options
context:
space:
mode:
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);