Previous Next Edit Rename Undo Search Administration
void *GB.Add ( void *parray )
Adds a new element after the end of a memory array, by expanding it.
- parray is a pointer to the memory array that was casted to void *.
This function returned a pointer to the newly created element in the array. The element
is not initialized.
/* Adds an element to a previously allocated integer array */
elt = (int *)GB.Add((void *)&array);
*elt = 1972;