dev • api • name • gb.freearray

GB.FreeArray

void GB.FreeArray ( void *parray )

Deletes a memory array.

  • parray must be a pointer to a variable that points at the array. It is not a real void * pointer, but a TYPE ** pointer casted to void *, TYPE being the type of the data that will be stored in the array.

Examples


/ * Creates And delete an array Of integers With n slots * /

int * array;

GB.NewArray((void * ) & array, SizeOf( * array), n);
...
GB.FreeArray((void * ) & array);

See also