Mission Base

Program Base Library Functions

int pblListSetSize

( PblList* list, int size )

Sets the size of a list.

Documentation

Sets the size of a list.

Truncates the list if necessary.

If the size is increased, the new elements are initialized with NULL.

This method has a time complexity of O(N), with N being the difference between the old and new size of the list.

Parameters:
list - The list to use
size - The desired size to set
Returns:
int rc >= 0: OK, the list size is returned.
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++.