Syntax | #include <wchar.h> size_t wcsspn(const wchar_t *ws1, const wchar_t *ws2); |
Description | Starting at the beginning of the wide character string ws1, The function is terminated, and the segment length is returned on encountering the first character in ws1 that does not match any character in ws2. If the first character in ws1 matches none of the characters in ws2, the segment length is equal to 0. |
Return val. | Integer value that indicates the segment length (number of matching characters), starting at the beginning of string ws1. |
Notes | Wide character strings terminated with a null wide character code ( Restriction |
See also |
|