dev • api • name • gb.count

GB.Count

long GB.Count ( void *array )

Returns the number of elements in an array.

  • array points at the array data.

The parameter is a direct pointer to the data. It is not the same parameter syntax than GB.NewArray, GB.FreeArray and GB.Add.

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