1WCSLEN(3)                  Linux Programmer's Manual                 WCSLEN(3)
2
3
4

NAME

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

SYNOPSIS

9       #include <wchar.h>
10
11       size_t wcslen(const wchar_t *s);
12

DESCRIPTION

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

RETURN VALUE

19       The wcslen() function returns the number of wide characters in s.
20

ATTRIBUTES

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

CONFORMING TO

32       POSIX.1-2001, POSIX.1-2008, C99.
33

NOTES

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

SEE ALSO

39       strlen(3)
40

COLOPHON

42       This  page  is  part of release 5.13 of the Linux man-pages project.  A
43       description of the project, information about reporting bugs,  and  the
44       latest     version     of     this    page,    can    be    found    at
45       https://www.kernel.org/doc/man-pages/.
46
47
48
49GNU                               2021-08-27                         WCSLEN(3)
Impressum