Assume I've an array of strings which contain some chinese chars inside.
Eg: " This is a sample 在按键 needs to be tested"
^ ^
| |
start end
//start -Starting point of the array
//end - Ending point for the array
//Dest - destination wild char.
bool getStr(char* start, char* end, wchar_t dest)
{
// I cannot change the function prototype.
}
Can any one help me which will be the best function to use?
I tried a copying i char at a time and assign to another char* and finally did ::mbstowcs(). but this is not helping out.