At 10:21 AM -0500 3/22/01, Stringer wrote:
>...
>I just checked the definition of StrNCompare in the OS3.5 documentation
>and it doesn't say that the strings have to be null-terminated.
>
>THIS IS A BUG!

Call it whatever you like, but StrNCompare is *not* strncmp.

If you do not terminate the sequence of bytes with a null, it is not a string but 
rather a byte array, in which case the function you seek would be called MemNCompare 
or memncmp.

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


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