From owner-freebsd-hackers Sun Jan 25 17:47:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA16587 for hackers-outgoing; Sun, 25 Jan 1998 17:47:25 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA16574; Sun, 25 Jan 1998 17:47:17 -0800 (PST) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id MAA18713; Mon, 26 Jan 1998 12:17:04 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id MAA04176; Mon, 26 Jan 1998 12:17:04 +1030 (CST) (envelope-from grog) Message-ID: <19980126121703.20350@lemis.com> Date: Mon, 26 Jan 1998 12:17:03 +1030 From: Greg Lehey To: Mike Smith Cc: albast , questions@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Where's gcvt(3) ?? References: <199801252207.XAA14890@xs2.xs4all.nl> <199801260111.LAA00582@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <199801260111.LAA00582@word.smith.net.au>; from Mike Smith on Mon, Jan 26, 1998 at 11:41:12AM +1030 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk On Mon, Jan 26, 1998 at 11:41:12AM +1030, Mike Smith wrote: >> Why doesn't FreeBSD (2.2.5) include gcvt(3), which converts >> a floating-point number to a string? > > What is there that gcvt does that the *printf() family don't? Nothing, if I recall correctly. Some systems (at least MIPS) use *cvt() (where * is a subset of the format characters) as part of the implementation of *printf(). For some reason, this implementation is bypassing the *printf() layer. Greg