axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
void axl_list_add_at ( axlList list,
axlPointer  pointer,
int  position 
)

Allows to adds the provided item to the given list at the selected position.

The function will perform an indexed addition, using the value position, by-passing current list configuration (axl_list_new).

If the position is greater than the length of the list, the item is added at the end of the list. If the position is 0, the item is added at the begin (equivalent to call axl_list_prepend).

If an item is found at the provided position, the element is added before the already found.

Parameters
listThe list where the addition operation will be performed.
pointerThe item to add to the list.
positionPosition where the addition operation will be performed. Values allowed ranges from 0 up to list length - 1.

References AXL_LEVEL_DEBUG, axl_list_append(), axl_list_prepend(), and axl_return_if_fail.