> There are better ways of padding a string

Indeed there are. If the original string was the output from StrIToA, you
can just add 1000000000 to the input, then skip the first byte, e.g.

Char buf[10];
Long n = 1234;
StrIToA(buf, 1000000000 + n);

then use the string starting at buf + 1.
1000000000 should be OK for a Long.


-- 
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