From owner-cvs-all Thu Jan 11 13:36:29 2001 Delivered-To: cvs-all@freebsd.org Received: from netau1.alcanet.com.au (ntp.alcanet.com.au [203.62.196.27]) by hub.freebsd.org (Postfix) with ESMTP id 7380A37B400; Thu, 11 Jan 2001 13:36:03 -0800 (PST) Received: from mfg1.cim.alcatel.com.au (mfg1.cim.alcatel.com.au [139.188.23.1]) by netau1.alcanet.com.au (8.9.3 (PHNE_22672)/8.9.3) with ESMTP id IAA02505; Fri, 12 Jan 2001 08:36:01 +1100 (EDT) Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37641) with ESMTP id <01JYTAS6CBWWEMXO8S@cim.alcatel.com.au>; Fri, 12 Jan 2001 08:36:09 +1100 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.11.0/8.11.0) id f0BLZwQ86788; Fri, 12 Jan 2001 08:35:58 +1100 (EST envelope-from jeremyp) Content-return: prohibited Date: Fri, 12 Jan 2001 08:35:58 +1100 From: Peter Jeremy Subject: Re: cvs commit: ports/devel/clanlib Makefile ports/devel/clanlib/files patch-Sources_Util_fcvt.c patch-ah In-reply-to: <200101092309.f09N90P48928@freefall.freebsd.org>; from sobomax@FreeBSD.ORG on Tue, Jan 09, 2001 at 03:09:00PM -0800 To: Maxim Sobolev Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Mail-followup-to: Maxim Sobolev , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Message-id: <20010112083558.C91242@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <200101092309.f09N90P48928@freefall.freebsd.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 2001-Jan-09 15:09:00 -0800, Maxim Sobolev 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? Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message