1WCSLEN(3) Linux Programmer's Manual WCSLEN(3)
2
3
4
6 wcslen - determine the length of a wide-character string
7
9 #include <wchar.h>
10
11 size_t wcslen(const wchar_t *s);
12
14 The wcslen() function is the wide-character equivalent of the strlen(3)
15 function. It determines the length of the wide-character string
16 pointed to by s, excluding the terminating null wide character (L'\0').
17
19 The wcslen() function returns the number of wide characters in s.
20
22 For an explanation of the terms used in this section, see
23 attributes(7).
24
25 ┌──────────┬───────────────┬─────────┐
26 │Interface │ Attribute │ Value │
27 ├──────────┼───────────────┼─────────┤
28 │wcslen() │ Thread safety │ MT-Safe │
29 └──────────┴───────────────┴─────────┘
31 POSIX.1-2001, POSIX.1-2008, C99.
32
34 strlen(3)
35
37 This page is part of release 5.02 of the Linux man-pages project. A
38 description of the project, information about reporting bugs, and the
39 latest version of this page, can be found at
40 https://www.kernel.org/doc/man-pages/.
41
42
43
44GNU 2019-03-06 WCSLEN(3)