1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" SPDX-License-Identifier: GPL-2.0-or-later
5 .\" References consulted:
6 .\" GNU glibc-2 source code and manual
7 .\" Dinkumware C library reference http://www.dinkumware.com/
8 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
10 .TH wcsnlen 3 (date) "Linux man-pages (unreleased)"
12 wcsnlen \- determine the length of a fixed-size wide-character string
15 .RI ( libc ", " \-lc )
20 .BI "size_t wcsnlen(const wchar_t *" s ", size_t " maxlen );
24 Feature Test Macro Requirements for glibc (see
25 .BR feature_test_macros (7)):
31 _POSIX_C_SOURCE >= 200809L
38 function is the wide-character equivalent
42 It returns the number of wide-characters in the string pointed to by
44 not including the terminating null wide character (L\(aq\e0\(aq),
47 wide characters (note: this parameter is not a byte count).
50 looks at only the first
65 if there is no null wide character among the
68 wide characters pointed to by
73 function is provided in glibc since version 2.1.
75 For an explanation of the terms used in this section, see
83 Interface Attribute Value
86 T} Thread safety MT-Safe