The lstrcmpfunction compares two character strings. The comparison is case sensitive.
To perform a comparison that is not case sensitive, use thelstrcmpifunction.
Syntax
int lstrcmp(
LPCTSTR lpString1, LPCTSTR lpString2 );
Parameters
- lpString1
- [in] Pointer to the first null-terminated string to be compared.
- lpString2
- [in] Pointer to the second null-terminated string to be compared.
Return Value
If the string pointed to by lpString1 is less than the string pointed to by lpString2, the return value is negative. If the string pointed to by lpString1 is greater than the string pointed to by lpString2, the return value is positive. If the strings are equal, the return value is zero.
浙公网安备 33010602011771号