Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/string/wide/wcsncmp"

From cppreference.com
< cpp‎ | string‎ | wide
m (Text replace - "/sidebar" to "/navbar")
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh)
Line 34: Line 34:
 
{{dcl list see c | c/string/wide/wcsncmp}}
 
{{dcl list see c | c/string/wide/wcsncmp}}
 
{{dcl list end}}
 
{{dcl list end}}
 +
 +
[[de:cpp/string/wide/wcsncmp]]
 +
[[es:cpp/string/wide/wcsncmp]]
 +
[[fr:cpp/string/wide/wcsncmp]]
 +
[[it:cpp/string/wide/wcsncmp]]
 +
[[ja:cpp/string/wide/wcsncmp]]
 +
[[pt:cpp/string/wide/wcsncmp]]
 +
[[ru:cpp/string/wide/wcsncmp]]
 +
[[zh:cpp/string/wide/wcsncmp]]

Revision as of 14:04, 2 November 2012

Defined in header <cwchar>
int wcsncmp( const wchar_t* lhs, const wchar_t* rhs, size_t count );

Compares at most count wide characters of two null-terminated wide strings. The comparison is done lexicographically.

Contents

Parameters

lhs, rhs - pointers to the null-terminated wide strings to compare
count - maximum number of characters to compare

Return value

Negative value if lhs is less than rhs.

0 if lhs is equal to rhs.

Positive value if lhs is greater than rhs.

Example

See also

Template:cpp/string/wide/dcl list wcscmpTemplate:cpp/string/wide/dcl list wmemcmpTemplate:cpp/string/wide/dcl list wcscoll
C documentation for wcsncmp