--On 27 July 2001 15:23 -0500 "Bradly J. Barton" <[EMAIL PROTECTED]> wrote:
>> >> {
>> >> Char dst[201];
>> >> Char src[500];
>> >>
>> >> MemSet(src, 499, 32);
>> >> src[499] = \0;
>> >>
>> >> StrNCopy(str, src, 200);
>> ^^^ D'OH! s/str/dst/
>> >> FrmCustomAlert(ID_ALERT, "It ", dst[200] == \0 ? "is": "is not", "
>> >> terminated");
>> >> ^^^ (0-199 - 200 chars, 200 -
>> >
>> > well... 200 chars = 0..199, so, i'd say dst[200] = 32; :P
>>
>> Shouldn't it be 0, if anything?
>
> Actually, dst was never initialized, so it could be anything.. even 0..
> all the StrNCopy did was fill bytes 0 through 199 with 32.. :P
KCHING! That's the answer I was looking for!
Cheers,
IM
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/