Why not just wcslen? Code: [View]. offset_t bytesInWCharStr(wchar_t* wstr) { return wcslen(wstr) * sizeof(wchar_t); }.
確定! 回上一頁