PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

StrNCmp

short PStrNCmp(ConstStr255Param str1, ConstStr255Param str2, UInt32 max);

short CStrNCmp (const char *str1, const char *str2, UInt32 max);
DESCRIPTION

PStrNCmp and CStrNCmp compare the first max C and Pascal strings str1 and str2 by comparing the values of corresponding characters in each string. These functions treat variations of case, diacritical marks, or other localization factors as different characters.

RETURN CODES
str1 less than str2 -1
str1 equals str2 0
str1 greater than str2 1

© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)