chsvlib
chsv helper source code

◆ AllocateAndCopyStringW()

wchar_t* Chusov::String::AllocateAndCopyStringW ( const wchar_t *  pszRight)
noexcept

Allocates and returns a copy of a wide string.

Parameters
[in]pszRightis an input wide string used to initialize the output.
Returns
Returns a pointer to a copy of the input wide string. The allocated buffer returned should be deallocated using FreeStringW function or any other free functions defined in chsvmem.h. On failure the function returns NULL setting corresponding chsvlib error. code.
See also
FreeStringW;
AllocateAndCopyStringA;
AllocateAndFormatStringW;
AllocateWideFromMBS.