Path: chuka.playstation.co.uk!news From: "Matt Verran" Newsgroups: scee.yaroze.beginners Subject: Re: integer to string Date: Sat, 26 Jun 1999 21:45:32 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 17 Message-ID: <7l3e9g$1111@chuka.playstation.co.uk> References: <7l2qan$qpv24@chuka.playstation.co.uk> <7l3795$qpv25@chuka.playstation.co.uk> NNTP-Posting-Host: modem-9.liontamer.dialup.pol.co.uk X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Basically I have a function that renders text (passed as 'char *text') to the screen. I need to be able to pass integer values to the function, like '13' or '2056' etc... Rikki Prince wrote in message <7l3795$qpv25@chuka.playstation.co.uk>... >Do you have an array of ints? If so, then loop through the array of ints, >and the equivalent char array element. The assignment would probably look >like: >char[counter] = ((char *)int[counter])+48; >I'm not sure about the (char *) bit, but it will be either that or (char), >but this could be sussed out with some simple testing. Why don't you post >whatever code you've got to see where you're having problems? >