X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fftoastr.h;h=6264952e8e97e1563afd351c038af3823e777cf6;hb=af278414363f4d441a2901447d92916529a61564;hp=fd7a802dbecb4767dcd7c9d437af82a72aeec51c;hpb=04da1cb11cf8285b944492aaa636dbd596ed5e74;p=gnulib.git diff --git a/lib/ftoastr.h b/lib/ftoastr.h index fd7a802db..6264952e8 100644 --- a/lib/ftoastr.h +++ b/lib/ftoastr.h @@ -1,6 +1,6 @@ /* floating point to accurate string - Copyright (C) 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -39,8 +39,8 @@ Example: - char buf[DBL_ABUFSIZE_BOUND]; - int r = dtoastr (buf, sizeof buf, "%*.*g", 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. */