Module Name: src
Committed By: jruoho
Date: Sun Mar 21 19:55:19 UTC 2010
Modified Files:
src/lib/libc/stdio: printf.3
Log Message:
Mention the recommended usage of inttypes(3) when applicable.
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/lib/libc/stdio/printf.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/stdio/printf.3
diff -u src/lib/libc/stdio/printf.3:1.49 src/lib/libc/stdio/printf.3:1.50
--- src/lib/libc/stdio/printf.3:1.49 Thu Apr 9 00:04:34 2009
+++ src/lib/libc/stdio/printf.3 Sun Mar 21 19:55:19 2010
@@ -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 ,