cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/28/01:11:47

Message-Id: <3.0.5.32.19990428015907.0086f9e0@200.252.238.1>
X-Sender: thiagofga AT 200 DOT 252 DOT 238 DOT 1
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32)
Date: Wed, 28 Apr 1999 01:59:07 -0300
To: djgpp AT delorie DOT com
From: "Thiago F.G. Albuquerque" <thiagofga AT ambr DOT com DOT br>
Subject: Re: Integer -> String
In-Reply-To: <37267AA1.EA49DE45@student.cowan.edu.au>
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

At 11:04 28/04/99 +0800, you wrote:
>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.

char str[3];
int i = 10;

sprintf(str, "%d", i);

- Raw text -


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