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
Definition | #include <wchar.h> size_t wcscspn(const wchar_t *ws1, const wchar_t *ws2); 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 the wide character string ws1. |
Note | This version of the C runtime system only supports one-byte characters as wide character codes. |
See also | strcspn, wcsspn |