GB.Count
long GB.Count ( void *array )
Returns the number of elements in an array.
-
array points at the array data.
Examples
/* Creates and delete an array of integers with n slots and gets its number of elements */
int *array;
long count;
GB.NewArray((void *)&array, sizeof(*array), n);
count = GB.Count(array);
See also