Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdio Mention the recommended usage of inttypes(3) ...
details: https://anonhg.NetBSD.org/src/rev/6a5bf891737a
branches: trunk
changeset: 753253:6a5bf891737a
user: jruoho <jruoho%NetBSD.org@localhost>
date: Sun Mar 21 19:55:19 2010 +0000
description:
Mention the recommended usage of inttypes(3) when applicable.
diffstat:
lib/libc/stdio/printf.3 | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r b515155af8a2 -r 6a5bf891737a lib/libc/stdio/printf.3
--- a/lib/libc/stdio/printf.3 Sun Mar 21 19:53:52 2010 +0000
+++ b/lib/libc/stdio/printf.3 Sun Mar 21 19:55:19 2010 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: printf.3,v 1.49 2009/04/09 00:04:34 joerg Exp $
+.\" $NetBSD: printf.3,v 1.50 2010/03/21 19:55:19 jruoho 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 December 16, 2008
+.Dd March 21, 2010
.Dt PRINTF 3
.Os
.Sh NAME
@@ -383,6 +383,14 @@
equivalent in size to a
.Vt size_t .
.Pp
+Note:
+if the standard integer types described in
+.Xr stdint 3
+are used, it is recommended that the predefined format string specifier
+macros are used when possible.
+These are further described in
+.Xr inttypes 3 .
+.Pp
The following length modifier is valid for the
.Cm a ,
.Cm A ,
Home |
Main Index |
Thread Index |
Old Index