1wcslen(3)                  Library Functions Manual                  wcslen(3)
2
3
4

NAME

6       wcslen - determine the length of a wide-character string
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <wchar.h>
13
14       size_t wcslen(const wchar_t *s);
15

DESCRIPTION

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

RETURN VALUE

22       The wcslen() function returns the number of wide characters in s.
23

ATTRIBUTES

25       For  an  explanation  of  the  terms  used  in  this  section,  see at‐
26       tributes(7).
27
28       ┌────────────────────────────────────────────┬───────────────┬─────────┐
29Interface                                   Attribute     Value   
30       ├────────────────────────────────────────────┼───────────────┼─────────┤
31wcslen()                                    │ Thread safety │ MT-Safe │
32       └────────────────────────────────────────────┴───────────────┴─────────┘
33

STANDARDS

35       C11, POSIX.1-2008.
36

HISTORY

38       POSIX.1-2001, C99.
39

NOTES

41       In cases where the input buffer may not contain a terminating null wide
42       character, wcsnlen(3) should be used instead.
43

SEE ALSO

45       strlen(3)
46
47
48
49Linux man-pages 6.05              2023-07-20                         wcslen(3)
Impressum