Annotated edit history of
wcsncmp(3) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
WCSNCMP |
|
|
2 |
!!!WCSNCMP |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
CONFORMING TO |
|
|
8 |
SEE ALSO |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
wcsncmp - compare two fixed-size wide-character strings |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
__#include |
|
|
18 |
__''s1''__, const wchar_t *__''s2''__, size_t__ ''n''__); |
|
|
19 |
__ |
|
|
20 |
!!DESCRIPTION |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
The __wcsncmp__ function is the wide-character equivalent |
|
|
24 |
of the __strncmp__ function. It compares the |
|
|
25 |
wide-character string pointed to by ''s1'' and the |
|
|
26 |
wide-character string pointed to by ''s2'', but at most |
|
|
27 |
''n'' wide characters from each string. In each string, |
|
|
28 |
the comparison extends only up to the first occurrence of a |
|
|
29 |
L'0' character, if any. |
|
|
30 |
!!RETURN VALUE |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
The __wcsncmp__ function returns zero if the |
|
|
34 |
wide-character strings at ''s1'' and ''s2'', truncated |
|
|
35 |
to at most length ''n'', are equal. It returns an integer |
|
|
36 |
greater than zero if at the first differing position |
|
|
37 |
''i'' (''i'' ''n''), the corresponding |
|
|
38 |
wide-character ''s1[[i]'' is greater than ''s2[[i]''. It |
|
|
39 |
returns an integer less than zero if at the first differing |
|
|
40 |
position ''i'' (''i'' ''n''), the |
|
|
41 |
corresponding wide-character ''s1[[i]'' is less than |
|
|
42 |
''s2[[i]''. |
|
|
43 |
!!CONFORMING TO |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
ISO/ANSI C, UNIX98 |
|
|
47 |
!!SEE ALSO |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
strncmp(3), wcsncasecmp(3) |
|
|
51 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.