wcscmp
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <wchar.h> 中定义
|
||
| int wcscmp( const wchar_t* lhs, const wchar_t* rhs ); |
||
比较两个空结尾的字符串。比较是字典.
原文:
Compares two null-terminated wide strings. The comparison is done lexicographically.
目录 |
[编辑] 参数
| lhs, rhs | - | null结尾的宽字符串的指针进行比较
原文: pointers to the null-terminated wide strings to compare |
[编辑] 返回值
负值
lhs是“小于”rhs.原文:
Negative value if
lhs is less than rhs.0如果
lhs是“等于”rhs.正值
lhs是“大于”rhs.原文:
Positive value if
lhs is greater than rhs.[编辑] 示例
| 本章尚未完成 原因:暂无示例 |
[编辑] 另请参阅
| 一定量的字符进行比较从两个宽字符串 原文: compares a certain amount of characters from two wide strings (函数) | |
| 比较一定量的宽字符从两个数组 原文: compares a certain amount of wide characters from two arrays (函数) | |
| 比较两个宽字符串,按照目前的语言环境 原文: compares two wide strings in accordance to the current locale (函数) | |
| C++ documentation for wcscmp
| |