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
- Correct memory allocation (long int -> character array) Tim Astle
- Re: Correct memory allocation (long int -> characte... James Parker
- Re: Correct memory allocation (long int -> characte... Tim Astle
- Re: Correct memory allocation (long int -> characte... Michael Yam
- Re: Correct memory allocation (long int -> characte... Tim Astle
- Re: Correct memory allocation (long int -> characte... Roberto Amorim
- RE: Correct memory allocation (long int -> characte... Roberto Amorim
- RE: Correct memory allocation (long int -> characte... Knobbe, Roger
- Re: Correct memory allocation (long int -> characte... Jason Dawes
