### wcslen -- Calculate Length of Wide-Character String

Format

>     #include <wcstr.h>
>     size_t wcslen(const wchar_t *string);

Language Level: XPG4
wcslen computes the number of wide characters in the string pointed to by string.

Return Value
wcslen returns the number of wide characters in string, excluding the terminating wchar_t null character.

Example
This example computes the length of the wide-character string string.

    #include <stdio.h>
    #include <wcstr.h>

    int main(void)
    {
      wchar_t * string = L"abcdef";

      printf( "Length of \"%ls\" is %i\n", string, wcslen( string ));
      return 0;

      /**************************************************************
         The output should be:

         Length of "abcdef" is 6
      **************************************************************/
    }

mblen -- Determine Length of Multibyte Character
strlen -- Determine String Length
wcsncat -- Concatenate Wide-Character Strings
wcsncmp -- Compare Wide-Character Strings
wcsncpy -- Copy Wide-Character Strings
<wcstr.h>