Module Name: src
Committed By: uwe
Date: Sun Jan 20 10:57:19 UTC 2013
Modified Files:
src/lib/libc/stdio: printf.3
Log Message:
In newfmt() example one level of indentation is enough.
To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/lib/libc/stdio/printf.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/stdio/printf.3
diff -u src/lib/libc/stdio/printf.3:1.59 src/lib/libc/stdio/printf.3:1.60
--- src/lib/libc/stdio/printf.3:1.59 Sat Jan 19 15:25:58 2013
+++ src/lib/libc/stdio/printf.3 Sun Jan 20 10:57:19 2013
@@ -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
#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