bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in ftoastr example


From: Paul Eggert
Subject: Re: bug in ftoastr example
Date: Mon, 20 Dec 2010 23:49:54 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

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  <address@hidden>
+
+       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  <address@hidden>
 
        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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]