Answers for "convert wchar_t to to multibyte"

C++
0

convert wchar_t to to multibyte

const wchar_t* input = L"Hello World";
const size_t SIZE = 256;
char result[SIZE];
int resultSize = wcstombs(result, input, SIZE);
Posted by: Guest on June-16-2021

Browse Popular Code Answers by Language