int arrayAt(Array array, int index, void **elem)
Provides the element at the specified position of an array.
void arrayDelete(Array array)
Deletes an array.
Array newArray(int size)
Creates an empty array, with the specified initial capacity.
int arrayInsert(Array array, int index, void *elem, int replace)
Inserts an new element at the specified position of an array.
int arrayMap(Array array, void(*fun)(void *))
Applies a function to the elements of an array.
SArray * Array
Array definition.
int arrayRemove(Array array, int index, void **elem)
Removes the element at the specified position of an array.
void ** array
Array of pointers to this array's elements.
int size
Number of element of this array.
int capacity
Current capacity of this array.
Implementation of an iterator.
int arrayCapacity(Array array)
Return the capacity of an array.
int arraySize(Array array)
Returns the size of an array.
int arrayResize(Array array, int size)
Increases the capacity of an array.
Iterator arrayIterator(Array array)
Creates an iterator from an array.