1wcslen(3) Library Functions Manual wcslen(3)
2
3
4
6 wcslen - determine the length of a wide-character string
7
9 Standard C library (libc, -lc)
10
12 #include <wchar.h>
13
14 size_t wcslen(const wchar_t *s);
15
17 The wcslen() function is the wide-character equivalent of the strlen(3)
18 function. It determines the length of the wide-character string
19 pointed to by s, excluding the terminating null wide character (L'\0').
20
22 The wcslen() function returns the number of wide characters in s.
23
25 For an explanation of the terms used in this section, see at‐
26 tributes(7).
27
28 ┌────────────────────────────────────────────┬───────────────┬─────────┐
29 │Interface │ Attribute │ Value │
30 ├────────────────────────────────────────────┼───────────────┼─────────┤
31 │wcslen() │ Thread safety │ MT-Safe │
32 └────────────────────────────────────────────┴───────────────┴─────────┘
33
35 C11, POSIX.1-2008.
36
38 POSIX.1-2001, C99.
39
41 In cases where the input buffer may not contain a terminating null wide
42 character, wcsnlen(3) should be used instead.
43
45 strlen(3)
46
47
48
49Linux man-pages 6.05 2023-07-20 wcslen(3)