Program Base Library Functions

int pblArrayListEnsureCapacity

( pblArrayList* arrayList,
  int minCapacity )

Increases the capacity of this ArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.

Documentation

Increases the capacity of this ArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.

Parameters:
arrayList - The list to use
minCapacity - The desired minimum capacity
Returns:
int rc >= 0: OK, the list capacity 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++.