Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdio Mark up occurence of printf() in text with .Fn
details: https://anonhg.NetBSD.org/src/rev/5aaa806d0d14
branches: trunk
changeset: 784158:5aaa806d0d14
user: uwe <uwe%NetBSD.org@localhost>
date: Sun Jan 20 11:01:17 2013 +0000
description:
Mark up occurence of printf() in text with .Fn
diffstat:
lib/libc/stdio/printf.3 | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r f08b4e53d84a -r 5aaa806d0d14 lib/libc/stdio/printf.3
--- a/lib/libc/stdio/printf.3 Sun Jan 20 10:57:19 2013 +0000
+++ b/lib/libc/stdio/printf.3 Sun Jan 20 11:01:17 2013 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: printf.3,v 1.60 2013/01/20 10:57:19 uwe Exp $
+.\" $NetBSD: printf.3,v 1.61 2013/01/20 11:01:17 uwe Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -884,7 +884,9 @@
snprintf(buffer, sizeof(buffer), "%s", string);
.Ed
.Pp
-There is no way for printf to know the size of each argument passed.
+There is no way for
+.Fn printf
+to know the size of each argument passed.
If you use positional arguments you must ensure that all parameters, up to the
last positionally specified parameter, are used in the format string.
This allows for the format string to be parsed for this information.
Home |
Main Index |
Thread Index |
Old Index