2 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\" References consulted:
7 .\" GNU glibc-2 source code and manual
8 .\" Dinkumware C library reference http://www.dinkumware.com/
9 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
12 .TH wcsncmp 3 (date) "Linux man-pages (unreleased)"
14 wcsncmp \- compare two fixed-size wide-character strings
17 .RI ( libc ", " \-lc )
22 .BI "int wcsncmp(const wchar_t " s1 [. n "], const wchar_t " s2 [. n "], \
28 function is the wide-character equivalent of the
31 It compares the wide-character string pointed to by
34 wide-character string pointed to by
39 characters from each string.
40 In each string, the comparison extends only up
41 to the first occurrence of a null wide character (L\[aq]\e0\[aq]), if any.
45 function returns zero if the wide-character strings at
49 truncated to at most length
52 It returns an integer greater than zero if at the first differing position
57 the corresponding wide-character
62 It returns an integer less than zero if at the first
74 For an explanation of the terms used in this section, see
82 Interface Attribute Value
85 T} Thread safety MT-Safe
91 POSIX.1-2001, POSIX.1-2008, C99.