int InsertAt(
int index,
ARG_TYPE item)
int InsertAt(
int index,
const TYPE *pitem,
int nCount)
Parameters
index
Index of the insertion point. This can be between 0 and the array size.
item
Item whose content is copied to the newly inserted item.
pitem
C array of items to copy.
nCount
Number of items in pitems to copy. The array grows by this value.
Comments
Returns the new size of the array, zero if allocation failed, or –1 if the index is out of bounds.
Inserts a copy of the given item at the given index or inserts a copy of the given array of items starting at the given index.