 |
StrCmpC ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Compares strings using C run-time (ASCII) collation rules. The comparison is case-sensitive. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
int StrCmpC(
__out LPCTSTR lpStr1,
__out LPCTSTR lpStr2
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER StrCmpC IN Shlwapi;
STRING @cStr1,;
STRING @cStr2
|
 |
 |
 |
| Parameters: |
 |
lpStr1 [out]
LPCTSTR
A pointer to the first null-terminated string to be compared.
lpStr2 [out]
LPCTSTR
A pointer to the second null-terminated string to be compared. |
 |
 |
| Return value: |
 |
Returns zero if the strings are identical.
Returns a positive value if the string pointed to by lpStr1 is alphabetically greater than that pointed to by lpStr2.
Returns a negative value if the string pointed to by lpStr1 is alphabetically less than that pointed to by lpStr2. |
 |
 |
| Usage: |
 |
cStr1 = "12345"
cStr2 = "12045"
? StrCmpC( @cStr1, @cStr2 ) && returns 3
? StrCmpC( @cStr2, @cStr1 ) && returns -3
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2010-05-20 14:34:25 | | Modified: | 2010-05-20 14:39:02 | Visited in last 7 days: 11 |