summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-04-07 15:02:16 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-04-07 15:02:16 +0000
commitbcfa30fcc21a4053213e093ed2f14c3317b4affa (patch)
tree7e8a532fea5805db3cbd0242ce54a5c54f340d9d
parent9fed997d5bc0b8df71f91f42860577ebb4084513 (diff)
downloadmpfr-bcfa30fcc21a4053213e093ed2f14c3317b4affa.tar.gz
[doc/mpfr.texi]
* Clarified mpfr_asprintf & mpfr_vasprintf specification in case of error. * Corrected an English error. (merged changesets r11264,11430 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11431 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--doc/mpfr.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/mpfr.texi b/doc/mpfr.texi
index e28e73ce9..b4574c55e 100644
--- a/doc/mpfr.texi
+++ b/doc/mpfr.texi
@@ -2456,7 +2456,7 @@ the control of the template string @var{template}, and print it in
@var{buf}. If @var{n} is zero, nothing is
written and @var{buf} may be a null pointer, otherwise, the @var{n}@minus{}1
first characters are written in @var{buf} and the @var{n}-th is a null character.
-Return the number of characters that would have been written had @var{n} be
+Return the number of characters that would have been written had @var{n} been
sufficiently large, @emph{not counting}
the terminating null character, or a negative value if an error occurred.
@c If the number of characters produced by the
@@ -2472,7 +2472,8 @@ Write their output as a null terminated string in a block of memory allocated
using the current allocation function. A pointer to the block is stored in
@var{str}. The block of memory must be freed using @code{mpfr_free_str}.
The return value is the number of characters written in the string, excluding
-the null-terminator, or a negative value if an error occurred.
+the null-terminator, or a negative value if an error occurred, in which case
+the contents of @var{str} are undefined.
@c If the number of
@c characters produced by the optional arguments under the control of the
@c template string @var{template} appears to exceed the maximum limit for an