Computes the length of a wide-character substring.
#include <wchar.h> size_t wcsspn ( const wchar_t *wcs, const wchar_t *charset);
(IN) Points to a wide-character string to scan.
(IN) Points to a set of wide characters to locate in wcs.
Returns the length of the initial segment.
The wcsspn function computes the length of the maximum initial segment of the string pointed to by wcs, which consists entirely of characters from the string pointed to by charset.