Standard C++ Library Reference ISO/IEC (VERSION3)

elements of the array that stores the wide string s1, beginning with the element that stores the terminating
null wide character of s1. The function copies no more than n wide characters from s2. It then stores a
null wide character, in the next element to be altered in s1, and returns s1.
wcsncmp
int wcsncmp(const wchar_t *s1, const wchar_t *s2,
size_t n);
The function compares successive elements from two wide strings, s1 and s2, until it finds elements that
are not equal or until it has compared the first n elements of the two wide strings.
If all elements are equal, the function returns zero.
If the differing element from s1 is greater than the element from s2, the function returns a positive
number.
Otherwise, it returns a negative number.
wcsncpy
wchar_t *wcsncpy(wchar_t *s1, const wchar_t *s2,
size_t n);
The function copies the wide string s2, not including its terminating null wide character, to successive
elements of the array whose first element has the address s1. It copies no more than n wide characters
from s2. The function then stores zero or more null wide characters in the next elements to be altered in s1
until it stores a total of n wide characters. It returns s1.
wcspbrk
wchar_t *wcspbrk(const wchar_t *s1, const wchar_t *s2); [not in C++]
const wchar_t *wcspbrk(const wchar_t *s1, const wchar_t *s2); [C++ only]
wchar_t *wcspbrk(wchar_t *s1, const wchar_t *s2); [C++ only]
The function searches for the first element s1[i] in the wide string s1 that equals any one of the elements
of the wide string s2. It considers each terminating null wide character as part of its wide string. If s1[i]
is not the terminating null wide character, the function returns &s1[i]; otherwise, it returns a null pointer.
wcsrchr
wchar_t *wcsrchr(const wchar_t *s, wchar_t c); [not in C++]
const wchar_t *wcsrchr(const wchar_t *s, wchar_t c); [C++ only]
wchar_t *wcsrchr(wchar_t *s, wchar_t c); [C++ only]
The function searches for the last element of the wide string s that equals c. It considers the terminating
null wide character as part of the wide string. If successful, the function returns the address of the matching
element; otherwise, it returns a null pointer.