Mission Base

Program Base Library Functions

int pblListAddFirst

( PblList* list, void* element )

Inserts the given element at the beginning of this list.

Documentation

Inserts the given element at the beginning of this list.

For array lists this method has a time complexity of O(N), with N being the size of the list.

For linked lists this method has a time complexity of O(1).

Parameters:
list - The list to add to
element - Element to be added to the list
Returns:
int rc >= 0: The size of this list instance.
int rc < 0: An error, see pbl_errno:
PBL_ERROR_OUT_OF_MEMORY - Out of memory.

Alphabetic index



This page was generated with the help of DOC++.