Home | History | Annotate | Download | only in cutils

Lines Matching defs:Array

18  * A pointer array which intelligently expands its capacity ad needed.
30 /** An array. */
31 typedef struct Array Array;
33 /** Constructs a new array. Returns NULL if we ran out of memory. */
34 Array* arrayCreate();
36 /** Frees an array. Does not free elements themselves. */
37 void arrayFree(Array* array);
40 int arrayAdd(Array* array, void* pointer);
43 void* arrayGet(Array* array, int index);
46 void* arrayRemove(Array* array, int index);
49 void* arraySet(Array* array, int index, void* pointer);
51 /** Sets the array size. Sets new pointers to NULL. Returns 0 if successful, < 0 otherwise . */
52 int arraySetSize(Array* array, int size);
54 /** Returns the size of the given array. */
55 int arraySize(Array* array);
58 * Returns a pointer to a C-style array which will be valid until this array
61 const void** arrayUnwrap(Array* array);