Please, how can I find out the length of a variable of type wchar_t* in c++?
wchar_t*
code example below:
wchar_t* dimObjPrefix = L\"retro_\";
Assuming that you want to get the length of null terminated C style string, you have two options:
#include
std::wcslen (dimObjPrefix);
std::char_traits::length (dimObjPrefix);