std::mbstowcs
From cppreference.com
| Defined in header <cstdlib>
|
||
| std::size_t mbstowcs( wchar_t* dst, const char* src, std::size_t len ); |
||
Converts a multibyte character string from the array whose first element is pointed to by src to its wide character representation. Converted characters are stored in the successive elements of the array pointed to by dst. No more than len wide characters are written to the destination array.
Each character is converted as if by a call to std::mbtowc, except that the mbtowc conversion state is unaffected. The conversion stops if:
- The multibyte null character was converted and stored.
- An invalid (in the current C locale) multibyte character was encountered.
- The next wide character to be stored would exceed len.
Contents |