Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ISafeString::wstrdup ( const P6WCHAR pString,
P6WCHAR **  ppCopy 
)
pure virtual

Duplicates the provided NULL terminated wide character string, allocating memory for it and returning the allocated copy.

You MUST use wstrfree() to free this string.

Parameters
pString[ in ] A pointer to the wide character string to be duplicated.
ppCopy[ out ] The address of a P6WCHAR in which will be placed a pointer to the newly allocated duplicate string.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgpString and/or ppCopy is NULL.
P6R::eNoMemoryThere is not enough memory available to fulfill this request.