# HG changeset patch # User Paul Eggert # Date 1292917699 28800 # Node ID c1b6463dfeccb5bc04f404297e5645814aacd4a2 # Parent 04d6758511bcfa2e328155b1a0f4f955eb30da18 ftoastr: fix comment again * lib/ftoastr.h: Fix typo in comment. Noted by Ben Pfaff in . Also, simplify example a bit by using flags = 0. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-12-20 Paul Eggert + + ftoastr: fix comment again + * lib/ftoastr.h: Fix typo in comment. Noted by Ben Pfaff in + . + Also, simplify example a bit by using flags = 0. + 2010-12-20 Bruno Haible round*, trunc*: Update documentation regarding glibc. diff --git a/lib/ftoastr.h b/lib/ftoastr.h --- 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. */