Name

wcslen - determine the length of a wide-character string

Library

libc.lib

Synopsis

  #include <wchar.h>
  size_t wcslen (const wchar_t *wcs);

Detailed description

The wcslen() function computes the length of the wide-character string wcs.

Examples

#include <wchar.h>
/* Illustrates how to use wcslen API */
size_t example_wcslen(void)
{
 wchar_t *wcs = L"defqwert";
 size_t len;
 /* compute the length of the wide-char string */
 len = wcslen(wcs);
 /* return the length of the wide-char string */
 return (len);
 .Ed

         

Return value

The wcslen() returns the number of wide-characters that precede the terminating NULL character.


Security considerations

Please refer strlen


See also

strlen

Feedback

For additional information or queries on this page send feedback

© 2007-2009 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.