aboutsummaryrefslogtreecommitdiff
path: root/manual/stdio.texi
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-04-02 22:06:24 +0000
committerUlrich Drepper <drepper@redhat.com>1997-04-02 22:06:24 +0000
commitfe7bdd630fab35270a88b0731cd0fc10de062046 (patch)
tree61ccfe100af44cfbb4ac1790a430743ce846c7d0 /manual/stdio.texi
parent22d57dd3690a0fe623de1a56036306a93fa9a945 (diff)
downloadglibc-fe7bdd630fab35270a88b0731cd0fc10de062046.tar
glibc-fe7bdd630fab35270a88b0731cd0fc10de062046.tar.gz
glibc-fe7bdd630fab35270a88b0731cd0fc10de062046.tar.bz2
glibc-fe7bdd630fab35270a88b0731cd0fc10de062046.zip
1997-04-02 16:55 Ulrich Drepper <drepper@cygnus.com> * manual/socket.texi: Document behaviour of inet_ntoa in multi- threaded programs. * manual/stdio.texi: Change wording for snprintf description a bit. Correct typo in example. * manual/lang.texi: Add documentation of __va_copy. * Makefile: Add rule to easily generate dir-add.texi file. * manual/Makefile: Likewise. * manual/arith.texi: Add description of lldiv_t, lldiv, and atoll. Change description of strtoll and strtoull to make clear these are the preferred names. Describe `inf', `inifinity', `nan', `nan(...)' inputs for strtod and friends. Change references to HUGE_VALf and HUGE_VALl to HUGE_VALF and HUGE_VALL. * sysdeps/libm-ieee754/s_nan.c: Use strtod if parameter is not empty * sysdeps/libm-ieee754/s_nanl.c: Likewise.
Diffstat (limited to 'manual/stdio.texi')
-rw-r--r--manual/stdio.texi12
1 files changed, 6 insertions, 6 deletions
diff --git a/manual/stdio.texi b/manual/stdio.texi
index 103be34abb..dd8555478a 100644
--- a/manual/stdio.texi
+++ b/manual/stdio.texi
@@ -1479,11 +1479,11 @@ 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}.
-The return value is the number of characters which are generated for the
-given input. If this value is greater than @var{size}, not all
-characters from the result have been stored in @var{s}. You should
-try again with a bigger output string. Here is an example of doing
-this:
+The return value is the number of characters which would be generated
+for the given input. If this value is greater or equal to @var{size},
+not all characters from the result have been stored in @var{s}. You
+should try again with a bigger output string. Here is an example of
+doing this:
@smallexample
@group
@@ -1503,7 +1503,7 @@ make_message (char *name, char *value)
name, value);
@end group
@group
- if (nchars) >= size)
+ if (nchars >= size)
@{
/* @r{Reallocate buffer now that we know how much space is needed.} */
buffer = (char *) xrealloc (buffer, nchars + 1);