Function ProArrayAlloc
Description
Allocates an array of objects. The maximum memory allocated is approximately 2 Mb, except for alpha_unix (or other 64-bit platforms), where the maximum is twice that. Refer to ProArrayMaxCountGet for data on getting the maximum number of objects of obj_size that can be stored in a specified ProArray.
Synopsis
#include <ProArray.h>
ProArrayAlloc
(
int n_objs
/* (In)
The initial number of objects allocated in the array.
*/
int obj_size
/* (In)
The size of each object in the array
*/
int reallocation_size
/* (In)
The minimum number of objects added or deleted if Creo Parametric TOOLKIT resizes the array, e.g. on a call to ProArrayObjectAdd.
*/
ProArray* p_array
/* (Out)
The allocated array
*/
)
Returns
The function successfully allocated the array.
One or more of the input arguments are invalid.
The array would be too big to allocate.
Sample Code References
User Guide References
È stato utile?