At 11:09 PM 6/7/00 -0500, you wrote:
>
>> 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.
>
>

"Concatenates 1 string to another clipping the destination string to a max
of N characters (including null at the end)."

Theoretically, StrNCat("01234\0", <ignored>, 5) would produce "0123\0"

#define StrNCat(dest, source, N) StrNCopy(&dest[StrLen(dest)], source, N)


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