delorie.com/archives/browse.cgi | search |
From: | "James Bunting" <james AT aic DOT co DOT uk> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <37267AA1 DOT EA49DE45 AT student DOT cowan DOT edu DOT au> |
Subject: | Re: Integer -> String |
Date: | Thu, 29 Apr 1999 01:08:21 +0100 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2014.211 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211 |
NNTP-Posting-Host: | warp8-83.enta-net.co.uk |
Message-ID: | <3727a691.0@energise.enta.net> |
X-Trace: | 29 Apr 1999 01:23:45 -0100, warp8-83.enta-net.co.uk |
Lines: | 28 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
2 ways... 1. sprintf( str, "%d", number); 2. itoa( number, str, 10); Have a look at the libc help for the "sprintf" and "itoa" commands for more info. -- James Bunting james AT aic DOT co DOT uk http://www.aic.co.uk/~james/ "Playing games is an addiction, creating them is an art" - [Me] Mark Randell <drandell AT student DOT cowan DOT edu DOT au> wrote in message news:37267AA1 DOT EA49DE45 AT student DOT cowan DOT edu DOT au... > Hi. I was wondering what statement is used to convert and integer to a > string, much like atoi converts a string to an integer. Thanks. >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |