www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/02/22/01:38:46

Date: Tue, 21 Feb 1995 18:17:48 -0500 (EST)
From: Cuthalion / Sliced Bread <enrico AT max DOT tiac DOT net>
Subject: Re: float to string
To: "Herzer Armin Assi(FBP)" <HERZER AT rz-nov2 DOT rz DOT FH-Weingarten DOT DE>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

On Tue, 21 Feb 1995, Herzer Armin Assi(FBP) wrote:

> Hello everybody,
> 
> is there a function that converts a float into a string (like 
> ecvt, fcvt, and gcvt in TURBO C). I am converting "by hand" and want 
> to know if there are some changes to the compiler now (wasn't there 
> an e-,f-,gcvt entry in the info reader for GNU C 2.5.8? When I look 
> into the new Info reader (that comes with GCC 2.6.x) I miss these 
> entries [and I remember that I tried to use these functions with 
> 2.5.8 without any success -> undefined references errors]).

	I dunno.  Either way, you can use sprintf.  It acts like printf, 
but you pass it an empty string and it prints to it instead of to some 
hardware device. :)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019