summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/printf.3
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2014-05-13 20:51:00 +0000
committerjmc <jmc@openbsd.org>2014-05-13 20:51:00 +0000
commit64a8fdb22167aa0f4ef94e08422e8e3b2b4a7024 (patch)
treecf7a42ee9b2a039f1f4ab83b47405302c7a1fceb /lib/libc/stdio/printf.3
parent- document two escape sequences as extensions in STANDARDS (diff)
downloadwireguard-openbsd-64a8fdb22167aa0f4ef94e08422e8e3b2b4a7024.tar.xz
wireguard-openbsd-64a8fdb22167aa0f4ef94e08422e8e3b2b4a7024.zip
for non-valid combinations with `#', instead of trying to list them all,
simply say all other combinations are behaviour undefined; ok guenther, who reminded me to change these too;
Diffstat (limited to 'lib/libc/stdio/printf.3')
-rw-r--r--lib/libc/stdio/printf.315
1 files changed, 3 insertions, 12 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index 8a2a76eebad..75e1949fe88 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: printf.3,v 1.68 2014/05/09 05:14:17 deraadt Exp $
+.\" $OpenBSD: printf.3,v 1.69 2014/05/13 20:51:00 jmc Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" @(#)printf.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 9 2014 $
+.Dd $Mdocdate: May 13 2014 $
.Dt PRINTF 3
.Os
.Sh NAME
@@ -188,16 +188,6 @@ A hash
character
specifying that the value should be converted to an ``alternate form''.
For
-.Cm c ,
-.Cm d ,
-.Cm i ,
-.Cm n ,
-.Cm p ,
-.Cm s ,
-and
-.Cm u
-conversions, this option has no effect.
-For
.Cm o
conversions, the precision of the number is increased to force the first
character of the output string to a zero (except if a zero value is printed
@@ -232,6 +222,7 @@ and
.Cm G
conversions, trailing zeros are not removed from the result as they
would otherwise be.
+For all other formats, behaviour is undefined.
.It
A zero
.Sq Cm \&0