On 12/20/2010 09:13 PM, Ben Pfaff wrote: > After I wrote my previous email, I realized that > DBL_ABUFSIZE_BOUND in the example was a typo for > DBL_BUFSIZE_BOUND, too.
Thanks again, I pushed this: diff --git a/ChangeLog b/ChangeLog index 55e680e..58c2782 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-12-20 Paul Eggert <egg...@cs.ucla.edu> + + ftoastr: fix comment again + * lib/ftoastr.h: Fix typo in comment. Noted by Ben Pfaff in + <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>. + Also, simplify example a bit by using flags = 0. + 2010-12-20 Bruno Haible <br...@clisp.org> round*, trunc*: Update documentation regarding glibc. diff --git a/lib/ftoastr.h b/lib/ftoastr.h index edae494..c16a884 100644 --- a/lib/ftoastr.h +++ b/lib/ftoastr.h @@ -39,8 +39,8 @@ Example: - char buf[DBL_ABUFSIZE_BOUND]; - int r = dtoastr (buf, sizeof buf, FTOASTR_UPPER_E, 0, 0.1); + char buf[DBL_BUFSIZE_BOUND]; + int r = dtoastr (buf, sizeof buf, 0, 0, 0.1); In the C locale, this sets R to 3 and stores "0.1" into BUF. */ -- 1.7.2