> So StrNCat(dst, src, 200) would copy first 199 spaces and set dst[200] == 
> '\0', right?

If dst[0] == '\0' and src is as defined in your previous example, then
StrNCat(dst, src, 200) would put 199 spaces into dst followed by a null
terminator. The null terminator would be written to dst[199]. It wouldn't
touch dst[200]. By passing 200 to StrNCat, you're saying that dst is a 200
byte buffer. See the docs for StrNCat for the other ways in which it differs
from the standard C strncat function.
--
Danny

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