----- Original Message -----
From: "kcorey" <[EMAIL PROTECTED]>
>
> When you're talking about trailing spaces at the end of a string, why
> not *always* type:
>
> str[index] = '\0';
Personally, I don't even bother with that, preferring
str[index] = 0;
If the actual binary value of the trailing character isn't zero ('\0' != 0)
then one of the most famous C idioms wouldn't work:
while (*dest++ = *source++)
;
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/