Home > dev > api > name > gb.add 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
GB.Add
void *GB.Add ( void *parray )

Adds a new element after the end of a memory array, by expanding it.

This function returned a pointer to the newly created element in the array. The element is not initialized.

Example


/* Adds an element to a previously allocated integer array */

int *array;
int *elt;

elt = (int *)GB.Add((void *)&array);
*elt = 1972;

See also

Memory Arrays Management