📅  最后修改于: 2022-03-11 14:44:44.959000             🧑  作者: Mango
const wchar_t* input = L"Hello World";
const size_t SIZE = 256;
char result[SIZE];
int resultSize = wcstombs(result, input, SIZE);