My variable is in a specific internal implementation of a wide string but I can get it to be a wide character array quite easily. The problem is I need to feed it to a library function that will only accept character arrays.
So I end up with what looks like this:
wchar_t* wstr;
// char* str = "need some processing here";
function(str);
So, is there an easy way or should I just do it manually character by character?