Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

wcscspn - get length of complementary wide character substring

&pagelevel(4)&pagelevel

Syntax

#include <wchar.h>

size_t wcscspn(const wchar_t *ws1, const wchar_t *ws2);

Description

Starting at the beginning of the wide character string ws1, wcscspn() calculates the length
of the segment that does not contain a single character from the wide character string ws2.
The terminating null byte (\0) is not treated as part of the wide character string ws2.

The function is terminated and the segment length is returned on encountering a character
in ws1 that matches a character in ws2.

If the first character in ws1 already matches a character in ws2, the segment length is equal
to 0.

Return val.

Integer that indicates the segment length (number of non-matching characters),
starting at the beginning of wide character string ws1.

Notes

Restriction
This version of the C runtime system only supports 1-byte characters as wide character
codes. They are of type wchar_t (see stddef.h). (End)

See also

wcsspn(), wchar.h.