-.\" $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.
.\"
.\" @(#)printf.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 9 2014 $
+.Dd $Mdocdate: May 13 2014 $
.Dt PRINTF 3
.Os
.Sh NAME
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
.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
-.\" $OpenBSD: wprintf.3,v 1.3 2011/09/03 22:59:07 jmc Exp $
+.\" $OpenBSD: wprintf.3,v 1.4 2014/05/13 20:51:00 jmc Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" @(#)printf.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: September 3 2011 $
+.Dd $Mdocdate: May 13 2014 $
.Dt WPRINTF 3
.Os
.Sh NAME
The value should be converted to an
.Dq alternate form .
For
-.Cm c , d , i , n , p , 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
.Cm G
conversions, trailing zeros are not removed from the result as they
would otherwise be.
+For all other formats, behaviour is undefined.
.It So Cm 0 Sc (zero)
Zero padding.
For all conversions except