summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-10-19 13:48:45 +0000
committertjr <tjr@FreeBSD.org>2002-10-19 13:48:45 +0000
commit6507d2b5f520163a5649fde502822b82701d4636 (patch)
tree41c0096e773cd451ad71989620a21f163084fa88 /lib/libc
parent058eca1b43e737259a52fb82713eaf686b961324 (diff)
downloadFreeBSD-src-6507d2b5f520163a5649fde502822b82701d4636.zip
FreeBSD-src-6507d2b5f520163a5649fde502822b82701d4636.tar.gz
Indent code example with one tab, not two, for consistency with the rest.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/printf.316
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index 1b3af20..00e0025 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -678,14 +678,14 @@ To allocate a 128 byte string and print into it:
#include <stdarg.h>
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 SECURITY CONSIDERATIONS
OpenPOWER on IntegriCloud