wcslen(), wcsnlen()

compute length of wide character string 

Function


SYNOPSIS

#include <wchar.h>

size_t wcslen(const wchar_t *ws);

size_t wcsnlen(const wchar_t *ws, size_t maxlen);


DESCRIPTION

The wcslen() function determines the length of the wide character string pointed to by ws not including the terminating NULL character. The wcsnlen() function computes the length of ws, but never scans beyond the first maxlen wide characters of ws.


PARAMETERS

ws 

Is a null-terminated string.

maxlen 

The maximum number of wide characters to scan for the end of wide string marker before returning.


RETURN VALUES

The wcslen() function returns the number of characters in the string pointed to by ws excluding the terminal NULL. The wcsnlen() function returns either the same result as wcslen() or maxlen, whichever is smaller.


CONFORMANCE

wcslen ANSI/ISO 9899:1990 'ISO C90'.

wcsnlen IEEE Std 1003.1-2008 'POSIX.1'.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
wcscat(), wcscmp(), wcscoll(), wcscpy(), wcsrchr(), wcsspn()


PTC MKS Toolkit 10.4 Documentation Build 39.