Next: , Previous: , Up: Wchar strings   [Contents][Index]


6.17 wcslen—get wide-character string length

Synopsis

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

Description
The wcslen function computes the number of wide-character codes in the wide-character string to which s points, not including the terminating null wide-character code.


Returns
The wcslen function returns the length of s; no return value is reserved to indicate an error.


Portability
wcslen is ISO/IEC 9899/AMD1:1995 (ISO C).

No supporting OS subroutines are required.