c-icap-doc  0.1
Typedefs | Functions


Arrays which store name/value pair items More...

Typedefs

typedef ci_dyn_array_t ci_ptr_dyn_array_t
 
An alias to the ci_dyn_array_t object. More...
 

Functions

const ci_array_item_t * ci_ptr_dyn_array_add (ci_ptr_dyn_array_t *ptr_array, const char *name, void *pointer)
 
Add an name/value pair item to the array. More...
 

Detailed Description


Arrays which store name/value pair items

Typedef Documentation

◆ ci_ptr_dyn_array_t


An alias to the ci_dyn_array_t object.

It is used to store pointers to an array. The ci_ptr_dyn_array_new, ci_ptr_dyn_array_destroy, ci_ptr_dyn_array_search and ci_ptr_dyn_array_iterate defines are equivalent to the ci_dyn_array_* functions with the required typecasting.

Function Documentation

◆ ci_ptr_dyn_array_add()

const ci_array_item_t* ci_ptr_dyn_array_add ( ci_ptr_dyn_array_t ptr_array,
const char *  name,
void *  pointer 
)


Add an name/value pair item to the array.

Parameters
ptr_arraya pointer to the ci_ptr_dyn_array_t object
namethe name part of the name/pointer pair item to be added
pointerthe pointer part of the name/value pair item to be added
Returns
a pointer to the new array item on success, NULL otherwise