1WCSNCMP(3P)                POSIX Programmer's Manual               WCSNCMP(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       wcsncmp - compare part of two wide-character strings
13

SYNOPSIS

15       #include <wchar.h>
16
17       int wcsncmp(const wchar_t *ws1, const wchar_t *ws2, size_t n);
18
19

DESCRIPTION

21       The wcsncmp() function shall compare not  more  than  n  wide-character
22       codes  (wide-character codes that follow a null wide-character code are
23       not compared) from the array pointed to by ws1 to the array pointed  to
24       by ws2.
25
26       The  sign of a non-zero return value shall be determined by the sign of
27       the difference between the values of the first pair  of  wide-character
28       codes that differ in the objects being compared.
29

RETURN VALUE

31       Upon  successful  completion, wcsncmp() shall return an integer greater
32       than, equal to, or less than 0, if the possibly  null-terminated  array
33       pointed  to by ws1 is greater than, equal to, or less than the possibly
34       null-terminated array pointed to by ws2, respectively.
35

ERRORS

37       No errors are defined.
38
39       The following sections are informative.
40

EXAMPLES

42       None.
43

APPLICATION USAGE

45       None.
46

RATIONALE

48       None.
49

FUTURE DIRECTIONS

51       None.
52

SEE ALSO

54       wcscmp(),  the  Base  Definitions   volume   of   IEEE Std 1003.1-2001,
55       <wchar.h>
56
58       Portions  of  this text are reprinted and reproduced in electronic form
59       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
60       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
61       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
62       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
63       event of any discrepancy between this version and the original IEEE and
64       The  Open Group Standard, the original IEEE and The Open Group Standard
65       is the referee document. The original Standard can be  obtained  online
66       at http://www.opengroup.org/unix/online.html .
67
68
69
70IEEE/The Open Group                  2003                          WCSNCMP(3P)
Impressum