delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/28/10:51:51

Message-Id: <199907281451.KAA28958@delorie.com>
From: "Dan Gold" <TedMat AT CoastNet DOT com>
To: <djgpp AT delorie DOT com>
Subject: Convert int to string??
Date: Tue, 26 Jan 1999 23:13:05 -0800
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

I know, I've posted way to much stuff today,

Sorry if it bother people, so here's my question and I believe it may not
be on topic, (by the way if someone could please write a message saying how
explicitely DJGPP the mailing list must be) I want to convert an integer to
a string. I can convert a string to an integer using atoi but there seems
to be no c library function to do the opposite. So it's either so simple
that theres no point in a function or well there's a function which there
isn't.  So code goes below...=)

char text[3];

int palette_color_r;

text[3] = palette_color_r;  // I can't cast so what?

Thanks for the help...from Dan Gold

            -=-=[CATACOMB ABYSS]=-=-
http://www.geocities.com/SiliconValley/Port/1547/

- Raw text -


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