Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Apr 1999 12:26:04 -0400 (EDT)
From:      Thomas David Rivers <rivers@dignus.com>
To:        gjohnson@nola.srrc.usda.gov, questions@FreeBSD.ORG
Subject:   Re: FreeBSD equivalent of Linux gcvt
Message-ID:  <199904051626.MAA08262@lakes.dignus.com>
In-Reply-To: <19990405112300.A66810@symbion.srrc.usda.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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 <stdlib.h> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904051626.MAA08262>