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