Date: Tue, 21 Feb 1995 18:17:48 -0500 (EST) From: Cuthalion / Sliced Bread Subject: Re: float to string To: "Herzer Armin Assi(FBP)" 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. :)