I'm having some really weird stuff going on with
character pointers and UInt arrays:
Char * working;
UInt16 done2[25];
//snip
StrToLower(working,word);
len = StrLen(working);
for (i=0;i<25;i++) done2[i]=0;
word is never empty. Neither working or done2[] are
used before this in the code. If I check the value of
working before the for loop it's correct (a lowercase
word), after the for loop it's set to "".
I can't figure out why for the life of me. I moved
done2's initialisation to before the string copying,
but later in my code I have the exact same problem,
this is just the easiest example. Any help you can
give would be much appreciated.
J.D.
=====
------------------------------------------------
"I shall kill you all, starting with the
Lactose intolerant"
-Evil Cow
------------------------------------------------
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/