summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorgrange <grange@openbsd.org>2003-08-17 17:08:09 +0000
committergrange <grange@openbsd.org>2003-08-17 17:08:09 +0000
commit029fef681ee0214d7961217c5911ea2f973fc40a (patch)
treec23dc067e5972e60d7e43e1a7bfa9f5fa65b8eab /lib/libc
parentMissing break, change NULL -> 0 for int parameter (no functional (diff)
downloadwireguard-openbsd-029fef681ee0214d7961217c5911ea2f973fc40a.tar.xz
wireguard-openbsd-029fef681ee0214d7961217c5911ea2f973fc40a.zip
Sort headers in example
ok millert@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/printf.34
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index e9a1cf54782..8cc10f393d2 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: printf.3,v 1.42 2003/07/15 10:05:36 jmc Exp $
+.\" $OpenBSD: printf.3,v 1.43 2003/08/17 17:08:09 grange Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -597,9 +597,9 @@ fprintf(stdout, "pi = %.5f\en", 4 * atan(1.0));
.Pp
To allocate a 128 byte string and print into it:
.Bd -literal -offset indent
+#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
-#include <stdarg.h>
char *
newfmt(const char *fmt, ...)