--- Matt Graham <[EMAIL PROTECTED]> wrote: > If you're coming from Java, then this is important. > Null terminating 0s > on strings is vital in C and it's string management > functions. If you > always program to account for possibly not having > 0s, you'll never get > anywhere. Find out for sure if the strings are > null-terminated and then > assume they always will be. If they are not null > terminated, then > null-terminate them as soon as you can and keep them > in null-terminated > form forever. The amount of time you waste trying to > manage non-null > terminated strings is way worse than having an extra > byte at the end of > each string and saving those few bytes is totally > not worth it.
So I looked at the code in detail and yes, they were terminated. Since I didn't know about MemMove() there was still no way I could do the packing. But that has been solved now. (I also came across a post where A.Ardiri mentioned something about MemSet() and null termination - anyone knows what that's about?) Thanks for that tip though Matt :-) __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus � Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
