prg_vector_size()
Abstract
Provides the number of elements currently stored within the vector.
Syntax
prg_vector_size (vector_ptr)
| Argument | Type | Description |
|---|---|---|
vector_ptr |
PrgT_Vector * |
vector of interest |
Return Type
unsigned long
number of elements currently in the vector
Header
prg_vector.h
Details
The vector keeps track of how many elements have been successfully inserted. This function call involves no searching or counting of elements. Note that the initial size of the vector is not related to the size returned by this function. The initial size is used to control memory allocation. When a vector is first created it is empty so the value returned by prg_vector_size() for that vector is zero. If the vector_ptr argument is NIL or references an invalid vector, this procedure returns zero.