GB.NewArray

void GB.NewArray ( void * parray , long size , long count )

Creates a new array.

Be careful ! Don't mistake this function for GB.Array.New, that creates Gambas array objects.

Example :

  /* Creates an array of integers with n slots */

  int *array;

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