diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2014-05-13 20:51:01 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2014-05-13 20:51:01 +0000 |
commit | bad5f4719b246b774f8178e503d5678972dd1163 (patch) | |
tree | ab9e4216d43ce5f996bb8c9a623b39d7a1f5a4bf /lib/libc | |
parent | 940d0aafe997c0fdc9b65423699dd6a807823f3a (diff) |
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')
-rw-r--r-- | lib/libc/stdio/printf.3 | 15 | ||||
-rw-r--r-- | lib/libc/stdio/wprintf.3 | 10 |
2 files changed, 6 insertions, 19 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 diff --git a/lib/libc/stdio/wprintf.3 b/lib/libc/stdio/wprintf.3 index b395f8526b0..a45aebe6459 100644 --- a/lib/libc/stdio/wprintf.3 +++ b/lib/libc/stdio/wprintf.3 @@ -1,4 +1,4 @@ -.\" $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. @@ -33,7 +33,7 @@ .\" .\" @(#)printf.3 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: September 3 2011 $ +.Dd $Mdocdate: May 13 2014 $ .Dt WPRINTF 3 .Os .Sh NAME @@ -135,11 +135,6 @@ Zero or more of the following flags: 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 @@ -168,6 +163,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 So Cm 0 Sc (zero) Zero padding. For all conversions except |