📜  将 wchar_t 转换为多字节 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:44.959000             🧑  作者: Mango

代码示例1
const wchar_t* input = L"Hello World";
const size_t SIZE = 256;
char result[SIZE];
int resultSize = wcstombs(result, input, SIZE);