Contents Index Topic Contents | ||
Previous Topic: StrChrI Next Topic: StrCmpNI |
StrCmpN
int StrCmpN( LPCTSTR lpStr1, LPCTSTR lpStr2, int nChar ); #define StrNCmp StrCmpNCompares a specified number of characters of two strings to determine if they are the same. The comparison is case sensitive. The StrNCmp macro differs from this function in name only.
- Returns zero if the strings are identical, or nonzero if they are not.
- lpStr1
- Address of the first string to be compared.
- lpStr2
- Address of the second string to be compared.
- nChar
- Number of characters to be compared.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.