While using wmemset api (http://msdn.microsoft.com/en-us/library/1fdeehz6(VS.80).aspx) for the count parameter should I have to multiply the length of the target string by 2 and provide or will wmemset will itself take care of the conversion?
While using wmemset api ( http://msdn.microsoft.com/en-us/library/1fdeehz6(VS.80).aspx ) for the count parameter should I have
Share
The answer is no. They have an example on the page you linked to:
Output:
Of course, the destination must have enough space (
sizeof(wchar_t)times the number of characters being written to).