Try this code: j=1; for (i=z; i > 0;i=i/10) j++; s = (char *)MemPtrNew(j); []s Roberto Amorim -- ========================================= | ___ | | / \ Campanha contra e-mail com HTML | | \ / FITA ASCII | | \ / | | X ASCII RIBBON | | / \ Against HTML e-mail | | / \ | ========================================= -- 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
