prg_vector_append()
Abstract
Adds an element to the vector, immediately after the element that currently has the highest position index.
Syntax
prg_vector_append (vector_ptr, element_ptr)
| Argument | Type | Description |
|---|---|---|
vector_ptr |
PrgT_Vector * |
vector of interest |
element_ptr |
void * |
element to be added at the end of the vector |
Return Type
PrgT_Compcode
Indicates success or failure. Failure only occurs due to insufficient memory.
Header
prg_vector.h
Details
If needed, the vector's memory resources will expand to accommodate the new element.