##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# wcslen

From cppreference.com
< c‎ | string‎ | wide

Defined in header `<wchar.h>` |  |
size_t wcslen( const wchar_t *str ); |  |

Returns the length of a wide string, that is the number of non-null wide characters that precede the terminating null wide character.

### [edit] Parameters

str | - | pointer to the null-terminated wide string to be examined

### [edit] Return value

The length of the null-terminated wide string `str`.

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

C++ documentation for wcslen

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/string/wide/wcslen&oldid=49165"
Category:

- Todo no example