Date: Wed, 30 Aug 2000 16:16:58 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Chris Amos cc: List DJGPP Subject: Re: Newbie here: How do i convert a number to a string? In-Reply-To: <20000830103233.2091.qmail@web509.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 30 Aug 2000, Chris Amos wrote: > I have looked though my c books but i think there is no ansi standard > way of doing that and thats why i couldnt find anything. I looked in > the rhide index of help and all i could find was the > > char * ecvt (double value, int ndigits, int *decpt, int *sign) > > command. Its not standats ansi, and there wasnt even an example given. > So i have no idea what to do. Do you use DJGPP v2.03? If not, upgrade. If you do have DJGPP v2.03, type "info libc alpha ecvt" and read there. It has a link to a sibling function called `ecvtbuf', where you will find detailed description and an example.