BTW, Why don't you use just this?:
 s = (char *)MemPtrNew(13);
One type long always will be fit in that;
[]s
Roberto

Roberto Amorim wrote:
> 
> Try this code:
> 
> j=1;
> for (i=z; i > 0;i=i/10) j++;
> s = (char *)MemPtrNew(j);
> 
> []s
> Roberto Amorim
> 
> --

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to