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

Alocate new storage for and duplicate the specified string into that storage.

You MUST call p6ISafeString::strfree() to deallocate the string.

See Also
p6ISafeString::strfree()
Parameters
pString[ in ] A pointer to the string to duplicate.
ppCopy[ out ] The address of a P6R::P6CHAR * in which to a place a pointer to the newly allocated copy.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgpString or ppCopy is NULL
P6R::eTooBigThe string was longer than P6SAFESTR_MAX_CCH characters.
P6R::eNoMemoryThere were not enough resources to allocate space for the copy of the string.