diff options
author | tjr <tjr@FreeBSD.org> | 2002-10-19 13:48:45 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-10-19 13:48:45 +0000 |
commit | 6507d2b5f520163a5649fde502822b82701d4636 (patch) | |
tree | 41c0096e773cd451ad71989620a21f163084fa88 /lib/libc | |
parent | 058eca1b43e737259a52fb82713eaf686b961324 (diff) | |
download | FreeBSD-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.3 | 16 |
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 |