chsvlib
chsv helper source code

◆ AllocateAndCopyStringA()

char* Chusov::String::AllocateAndCopyStringA ( const char *  pszRight)
noexcept

Allocates and returns a copy of a string.

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