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
11 .TH wcsnlen 3 (date) "Linux man-pages (unreleased)"
13 wcsnlen \- determine the length of a fixed-size wide-character string
16 .RI ( libc ", " \-lc )
21 .BI "size_t wcsnlen(const wchar_t " s [. maxlen "], size_t " maxlen );
25 Feature Test Macro Requirements for glibc (see
26 .BR feature_test_macros (7)):
32 _POSIX_C_SOURCE >= 200809L
39 function is the wide-character equivalent
43 It returns the number of wide-characters in the string pointed to by
45 not including the terminating null wide character (L\[aq]\e0\[aq]),
48 wide characters (note: this parameter is not a byte count).
51 looks at only the first
66 if there is no null wide character among the
69 wide characters pointed to by
74 function is provided since glibc 2.1.
76 For an explanation of the terms used in this section, see
84 Interface Attribute Value
87 T} Thread safety MT-Safe