std::wcstombs
From cppreference.com
| Defined in header <cstdlib>
|
||
| std::size_t wcstombs( char* dst, const wchar_t* src, std::size_t len ); |
||
Converts a sequence of wide characters from the array whose first element is pointed to by src to its narrow multibyte representation that begins in the initial shift state. Converted characters are stored in the successive elements of the char array pointed to by dst. No more than len bytes are written to the destination array.
Each character is converted as if by a call to std::wctomb, except that the wctomb's conversion state is unaffected. The conversion stops if:
- The null character was converted and stored.
- A wchar_t was found that does not correspond to a valid character in the current C locale.
- The next multibyte character to be stored would exceed len.
Contents |