Category Creo Parametric TOOLKIT fundamentals, Object ProString

Function ProStringCopy


Description
Copies a string into memory allocated by Creo Parametric. This allows you to free the string with ProStringFree() and allows Creo Parametric to free this string if necessary.
Synopsis
#include <ProUtil.h>
ProErrorProStringCopy(
char* string
/* (In)
The original string.
*/
char** to
/* (Out)
The copy of the string. Creo Parametric allocates memory for this argument.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid.
PRO_TK_OUT_OF_MEMORYThe function failed to allocate memory for the new string.