Re: cvs commit: ports/devel/clanlib Makefile ports/devel/clanlib/filespatch-Sources_Util_fcvt.c patch-ah

[ Available lists | Index of cvs-all | Month of Jan 2001 | Week of 23 Jan 2001 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Maxim Sobolev <sobomax@FreeBSD.org>
Date
23 Jan 2001 09:47:05
Subject
Re: cvs commit: ports/devel/clanlib Makefile ports/devel/clanlib/filespatch-Sources_Util_fcvt.c patch-ah
Message-ID
3A6DC364.8B97DA81@FreeBSD.org

References to

[ Hide this part ]
Peter Jeremy wrote:

> On 2001-Jan-09 15:09:00 -0800, Maxim Sobolev <sobomax@FreeBSD.ORG> wrote:
> >sobomax 2001/01/09 15:09:00 PST
> ...
> > Added files:
> > devel/clanlib/files patch-Sources_Util_fcvt.c
> > Log:
> > Add SUSv2 compatible fcvt() function ripped from glibc.
>
> I believe fcvt() is a subset of dtoa(). There is an (undocumented)
> dtoa() function (__dtoa()) in libc - it's used by strtod() and *printf()
> and the code is physically in src/lib/libc/stdlib/strtod.c
>
> I have also had occasions when fcvt() or dtoa() would allow simpler
> code than sprintf(). Wouldn't we be better off documenting our dtoa()
> and allowing other functions to access it?

Thanks for the tip - I'll look at it.

-Maxim



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Elapsed time: 0.121 seconds