From: "Paul Nevai" <[EMAIL PROTECTED]>
Subject: StrNCat question


> i.e., no matter how long txtStr is,
> then
> StrNCat (destStr, txtStr, min (StrLen (txtStr), 8));
> and
> StrNCat (destStr, txtStr, 8);
> are the same, aren't they? Thanks! Best regards, Paul
>

I don't think so.  According to the Reference, the 3rd param to StrNCat
specifies the maximum number of bytes to copy, including the terminating \0.
So, for example, if StrLen(txtStr)==8, you'd need to pass in 9 to StrNCat to
get the whole string.



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