From owner-freebsd-questions Mon Apr 5 9:28:32 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp2.vnet.net (smtp2.vnet.net [166.82.1.32]) by hub.freebsd.org (Postfix) with ESMTP id 3043E153E8 for ; Mon, 5 Apr 1999 09:28:29 -0700 (PDT) (envelope-from rivers@dignus.com) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by smtp2.vnet.net (8.9.1a/8.9.1) with ESMTP id MAA07220; Mon, 5 Apr 1999 12:27:40 -0400 (EDT) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.9.2/8.8.5) with ESMTP id MAA09690; Mon, 5 Apr 1999 12:26:05 -0400 (EDT) Received: (from rivers@localhost) by lakes.dignus.com (8.9.2/8.6.9) id MAA08262; Mon, 5 Apr 1999 12:26:04 -0400 (EDT) Date: Mon, 5 Apr 1999 12:26:04 -0400 (EDT) From: Thomas David Rivers Message-Id: <199904051626.MAA08262@lakes.dignus.com> To: gjohnson@nola.srrc.usda.gov, questions@FreeBSD.ORG Subject: Re: FreeBSD equivalent of Linux gcvt In-Reply-To: <19990405112300.A66810@symbion.srrc.usda.gov> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > I have another problem with code that uses a function defined in Linux > header files but not in FreeBSD header files. The function is gcvt and > it is defined in Linux as: > > extern char* gcvt __P((double __value, size_t __ndigit, char *__buf)); > > Is there an equivalent in FreeBSD? Or is there a work around. > > Thanks in advance. Seems like snprintf() would be an ANSI way of converting a double to a string. Is that what you need? - Dave Rivers - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message