Currently our code uses a for-loop for filling a buffer holding a Unicode string with some Unicode character value (of type wchar_t
). There's wmemset()
function in Visual C++ using which we could replace a loop with a single function call in that code. However we're concerned about portability - we'd like to leave code as portable as possible and so introducing non-portable or poorly portable stuff is a bad idea.
Will using wmemset()
hurt portability and to what extent?