summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/printf.3
diff options
context:
space:
mode:
authoruwe <uwe@NetBSD.org>2013-01-20 10:57:19 +0000
committeruwe <uwe@NetBSD.org>2013-01-20 10:57:19 +0000
commitf149db0a90f6c4610eba7d87466e0d77f39cdcfa (patch)
tree3657719002abcc82c721be8440c4f4fa3b9efa55 /lib/libc/stdio/printf.3
parent229d2db1728358f58e27d099dece59af867b6e7b (diff)
In newfmt() example one level of indentation is enough.
Diffstat (limited to 'lib/libc/stdio/printf.3')
-rw-r--r--lib/libc/stdio/printf.318
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index fb437b39b81..7596f65b91c 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: printf.3,v 1.59 2013/01/19 15:25:58 uwe Exp $
+.\" $NetBSD: printf.3,v 1.60 2013/01/20 10:57:19 uwe Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -772,14 +772,14 @@ To allocate a 128 byte string and print into it:
#include \*[Lt]stdarg.h\*[Gt]
char *newfmt(const char *fmt, ...)
{
- char *p;
- va_list ap;
- if ((p = malloc(128)) == NULL)
- return (NULL);
- va_start(ap, fmt);
- (void) vsnprintf(p, 128, fmt, ap);
- va_end(ap);
- return (p);
+ char *p;
+ va_list ap;
+ if ((p = malloc(128)) == NULL)
+ return (NULL);
+ va_start(ap, fmt);
+ (void) vsnprintf(p, 128, fmt, ap);
+ va_end(ap);
+ return (p);
}
.Ed
.Sh ERRORS