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

NAME

6       wcsncmp - compare part of two wide-character strings
7

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

25       Upon successful completion, wcsncmp() shall return an  integer  greater
26       than,  equal  to, or less than 0, if the possibly null-terminated array
27       pointed to by ws1 is greater than, equal to, or less than the  possibly
28       null-terminated array pointed to by ws2, respectively.
29

ERRORS

31       No errors are defined.
32
33       The following sections are informative.
34

EXAMPLES

36       None.
37

APPLICATION USAGE

39       None.
40

RATIONALE

42       None.
43

FUTURE DIRECTIONS

45       None.
46

SEE ALSO

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