> From: Stringer
>
> All of us who have programming in C (and C++) for many years have
> a reasonable expectation that the string functions containing 'n' and
> taking a length parameter do not need null-terminated strings.
> [snip]
>
> THIS IS A BUG!

<OPINION>
I realize I'm entering a subjective area here, but I disagree.  StrNCompare
!= strncmp.  The words do not have the same spelling, number of characters,
or case.  C programmers should be very aware of these differences (Abc !=
abc, etc.).  The mere fact that the words are different should cause you to
question your assumptions about how they function and create test cases to
verify how StrNCompare functions if the documentation wasn't clear.

OTOH, I agree that it would be nice if everything worked the same
everywhere.  But then we wouldn't have multiple languages, multiple OS's,
multiple hardware platforms, and certainly not the same level of
remuneration for our work.
</OPINION>


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