(Formatted Output Functions): Fix description of snprintf.

This commit is contained in:
Ulrich Drepper 2001-04-22 03:20:24 +00:00
parent d6f8608514
commit 5a74e68a52

View File

@ -2363,11 +2363,11 @@ make_message (char *name, char *value)
In practice, it is often easier just to use @code{asprintf}, below. In practice, it is often easier just to use @code{asprintf}, below.
@strong{Attention:} In the GNU C library version 2.0 the return value @strong{Attention:} In versions of the GNU C library prior to 2.1 the
is the number of characters stored, not including the terminating null. return value is the number of characters stored, not including the
If this value equals @code{@var{size} - 1}, then there was not enough terminating null; unless there was not enough space in @var{s} to
space in @var{s} for all the output. This change was necessary with store the result in which case @code{-1} is returned. This was
the adoption of snprintf by ISO C99. changed in order to comply with the @w{ISO C99} standard.
@end deftypefun @end deftypefun
@node Dynamic Output @node Dynamic Output