Here is some sample code, that if I could get some help on, it might help
with the other problem I mentioned earlier.
void Seperator (char* Data[], char* text)
{
UInt16 index=0, letterCount=0, row=0;
char tempData[255];
for (int i=0; i<strlen(text); i++)
if (text[i]==' ')
{
tempData[letterCount]='\0';
Data[row++]=tempData;
letterCount=0;
}
else
tempData[letterCount++]=text[i];
}
//------------------------------------------------------------
void test()
{
char* Title[3];
char* Desc[3];
char* Titles="book1 book2 book3";
char* Description="fact1 fact2 fact3";
Seperator (Title, Titles);
int i=0;
while (Title[i])
Print(Title[i++]);
}
I want the Title[] to be:
book1
book2
book3
it seperates it fine in seperator, but there is nothing int Title[] when it
returns.
I have been reading on this from numerous books and have gotten more
confused,
thanx
bill
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/