WCSLEN(3) Library Functions Manual WCSLEN(3)

wcslenget wide-character string length

#include <wchar.h>

size_t wcslen(const wchar_t *ws);

The functionality described on this reference page is aligned with the ISO C standard. Any conflict between the requirements described here and the ISO C standard is unintentional. This volume of IEEE Std 1003.1-2001 (“POSIX.1”) defers to the ISO C standard.

The wcslen () function shall compute the number of wide-character codes in the wide-character string to which ws points, not including the terminating null wide-character code.

The wcslen () function shall return the length of ws; no return value is reserved to indicate an error.

No errors are defined.

None.

None.

None.

None.

The Base Definitions volume of IEEE Std 1003.1-2001 (“POSIX.1”), <wchar.h>

First released in Issue 4. Derived from the MSE working draft.

footer end

December 6, 2001 posix.fail