1WCSNCMP(3)                 Linux Programmer's Manual                WCSNCMP(3)
2
3
4

NAME

6       wcsncmp - compare two fixed-size wide-character strings
7

SYNOPSIS

9       #include <wchar.h>
10
11       int wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n);
12

DESCRIPTION

14       The   wcsncmp()  function  is  the  wide-character  equivalent  of  the
15       strncmp(3) function.  It compares the wide-character string pointed  to
16       by  s1  and  the  wide-character string pointed to by s2, but at most n
17       wide characters from each  string.   In  each  string,  the  comparison
18       extends only up to the first occurrence of a L'\0' character, if any.
19

RETURN VALUE

21       The wcsncmp() function returns zero if the wide-character strings at s1
22       and s2, truncated to at most length n, are equal.  It returns an  inte‐
23       ger greater than zero if at the first differing position i (i < n), the
24       corresponding wide-character s1[i] is greater than s2[i].   It  returns
25       an integer less than zero if at the first differing position i (i < n),
26       the corresponding wide-character s1[i] is less than s2[i].
27

CONFORMING TO

29       C99.
30

SEE ALSO

32       strncmp(3), wcsncasecmp(3)
33

COLOPHON

35       This page is part of release 3.22 of the Linux  man-pages  project.   A
36       description  of  the project, and information about reporting bugs, can
37       be found at http://www.kernel.org/doc/man-pages/.
38
39
40
41GNU                               1999-07-25                        WCSNCMP(3)
Impressum