mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
* manual/stdio.texi (snprintf): Clarify handling of the trailing
null byte in the output string.
This commit is contained in:
@ -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>
|
2012-08-10 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/kernel-features.h
|
* sysdeps/unix/sysv/linux/kernel-features.h
|
||||||
|
@ -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
|
the @var{size} argument specifies the maximum number of characters to
|
||||||
produce. The trailing null character is counted towards this limit, so
|
produce. The trailing null character is counted towards this limit, so
|
||||||
you should allocate at least @var{size} characters for the string @var{s}.
|
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
|
The return value is the number of characters which would be generated
|
||||||
for the given input, excluding the trailing null. If this value is
|
for the given input, excluding the trailing null. If this value is
|
||||||
|
Reference in New Issue
Block a user