virtual P6R::P6ERR P6R::p6ISafeString::wstrdup ( const P6R::P6WCHAR *  pString,
P6R::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.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.