Category Creo Parametric TOOLKIT fundamentals, Object ProWstring

Function ProWstringArrayObjectAdd


Description
Adds and allocates memory for wide strings at a specified location to the array, or appends an object to the end of the array.

NOTE:

Because this call may cause the array to be reallocated, you must pass the address of the array.

Synopsis
#include <ProWstring.h>
ProErrorProWstringArrayObjectAdd(
ProWstring** p_array
/* (In)
The address of the array.
*/
int index
/* (In)
The position at which to insert wide string in the array. If you specify a value less than 0 (PRO_VALUE_UNUSED), the function appends the wide strings to the end of the array.
*/
int n_objects
/* (In)
The number of objects to add to the array.
*/
ProWstring* p_objects
/* (In)
The address from which a contiguous set of wide strings is to be copied into the array.
*/
)
Returns
PRO_TK_BAD_INPUTSThe size of the array is less than 0.
PRO_TK_INVALID_PTRThe *p_array is NULL.
PRO_TK_NO_ERRORThe function successfully added the object.

Sample Code References:

  1. pt_examples ( TestPartMaterial.c )
  2. pt_examples ( UtilString.c )