This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.16-ports-merge-167-g42443a4
- From: law at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 13 Aug 2012 19:12:31 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.16-ports-merge-167-g42443a4
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 42443a47925ece8bb32b83c3edd58e404bd6b5cb (commit)
from a1079206686b5b0f50b7173689637064fd1c7f37 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=42443a47925ece8bb32b83c3edd58e404bd6b5cb
commit 42443a47925ece8bb32b83c3edd58e404bd6b5cb
Author: Jeff Law <law@redhat.com>
Date: Mon Aug 13 13:12:18 2012 -0600
* manual/stdio.texi (snprintf): Clarify handling of the trailing
null byte in the output string.
diff --git a/ChangeLog b/ChangeLog
index 386f849..2b3d2e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-08-13 Jeff Law <law@redhat.com>
+
+ * manual/stdio.texi (snprintf): Clarify handling of the trailing
+ null byte in the output string.
+
2012-08-10 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/kernel-features.h
diff --git a/manual/stdio.texi b/manual/stdio.texi
index c58ca22..be769a5 100644
--- a/manual/stdio.texi
+++ b/manual/stdio.texi
@@ -2341,6 +2341,8 @@ The @code{snprintf} function is similar to @code{sprintf}, except that
the @var{size} argument specifies the maximum number of characters to
produce. The trailing null character is counted towards this limit, so
you should allocate at least @var{size} characters for the string @var{s}.
+If @var{size} is zero, nothing, not even the null byte, shall be written and
+@var{s} may be a null pointer.
The return value is the number of characters which would be generated
for the given input, excluding the trailing null. If this value is
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
manual/stdio.texi | 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources