Message-Id: <199907281451.KAA28958@delorie.com> From: "Dan Gold" To: 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 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/