> >Hi people,
> >
> >I have a problem very rare. I have the following code
> >
> >char ch[2];
> >
> >ch = "2";
> 
> ch = '2';
> 
> -Rus
> 
> Shouldn't that be:
> 
> ch[0] = '2';
> 
> -John
> 
 ch[0] = '2';
ch[1] = '0';

or

StrCopy(ch, "2");

or

MemMove(ch, "2", 2);

or just

char ch[] = "2";



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

Reply via email to