Michel.P 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.--- Gavin Maxwell <[EMAIL PROTECTED]> wrote:I think you'll find your strings probably are already terminated... why do you say they are not?I'm using data extracted from AddressDB records so they probably are (or at least should be). But since I still wasn't sure how to pack the strings even if they are terminated I wanted to explicitly add them to be sure that the packing/unpacking routines doesn't fail because of that
Matt
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
