This is probably a no brainer, but I hope someone will feel pity for me.
I have set this up:
char* Title[10]
char* Description[10]

I have

char* Data = "title1 title2 title3";
char* Desc = "book1 book2 book3"

I set up a function to seperate out the data by looking for a deliminator,
which it does prperly.
void Seperator (char* Data[], char* text)
{
    ...in the function I seperate out the text and put each word into the
Data[index] at their respective indexes
}

Seperator(Title, Data);
Seperator(Description, Data);


it seemed to return ok but when I called the function the second time using
Description as the destination array, the Title array changed be equal to
the Description array, they seem to be using the same memory location.

I know I am doing something stupid, but I can't figure it out, can anyone
help??
thanx
bill






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

Reply via email to