![]() |
Functions | |
Iarray * | iupArrayCreate (int start_count, int elem_size) |
void | iupArrayDestroy (Iarray *iarray) |
void * | iupArrayGetData (Iarray *iarray) |
void * | iupArrayInc (Iarray *iarray) |
void * | iupArrayAdd (Iarray *iarray, int new_count) |
int | iupArrayCount (Iarray *iarray) |
Iarray* iupArrayCreate | ( | int | start_count, | |
int | elem_size | |||
) |
Creates an array with an initial room for elements, and the element size. The array count starts at 0. And the maximum number of elements starts at the given count. The maximum number of elements is increased by the start count, every time it needs more memory. Must call iupArrayInc to proper allocates memory.
void iupArrayDestroy | ( | Iarray * | iarray | ) |
Destroys the array.
void* iupArrayGetData | ( | Iarray * | iarray | ) |
Returns the pointer that contains the array.
void* iupArrayInc | ( | Iarray * | iarray | ) |
Increments the number of elements in the array. The array count starts at 0. If the maximum number of elements is reached, the memory allocated is increased by the initial start count. Returns the pointer that contains the array.
void* iupArrayAdd | ( | Iarray * | iarray, | |
int | new_count | |||
) |
Increments the number of elements in the array by a given count. The array count starts at 0. If the maximum number of elements is reached, the memory allocated is increased by the given count. Returns the pointer that contains the array.
int iupArrayCount | ( | Iarray * | iarray | ) |
Returns the actual number of elements in the array.