1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
10 .\" References consulted:
11 .\" GNU glibc-2 source code and manual
12 .\" Dinkumware C library reference http://www.dinkumware.com/
13 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
16 .TH WCSNCMP 3 2021-03-22 "GNU" "Linux Programmer's Manual"
18 wcsncmp \- compare two fixed-size wide-character strings
23 .BI "int wcsncmp(const wchar_t *" s1 ", const wchar_t *" s2 ", size_t " 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.