汤姆熊猫

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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.

posted on 2011-12-10 17:19  汤姆熊猫  阅读(6078)  评论(0)    收藏  举报