Is there a function that does this for me?  If so that will save me the time
of trying to re-work my code.
I'm trying to take a integer(up to 160) and convert it to a character
string.  I've done this in other programs and had it work correctly, I just
don't understand what is wrong.


>From my understanding what i'm doing is allocating the space for an integer,
then copying the value from coord_x to old_x.  Is that assignment statement
instead, making old_x point to the memory location holding coord_x?  Display
is a global struct and i didn't think global variables were even stored in
low memory.

void prvLCDDraw(UInt8 movement)
{
 char *strg = NULL, *x = NULL,*y = NULL,*color = NULL;
 int size,old_x;
 old_x = Display.coord_x;     //Display.coord_x is an integer in a global
struct that is modified
//earlier in the program
 if(old_x >= 100)
 {
      x[0] = 0x31;
      old_x=old_x-100;   //this is where the error occurs
      x[1] = (int)(old_x/10)+0x30;

thanks

Nick



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to