diff options
Diffstat (limited to 'include/array.h')
-rw-r--r-- | include/array.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/array.h b/include/array.h index 48d82db..0b53f95 100644 --- a/include/array.h +++ b/include/array.h @@ -1,7 +1,9 @@ #ifndef ARRAY_H #define ARRAY_H + #include <stdlib.h> #define DEFAULT_ARR_LEN 10 + typedef struct { void **items; size_t size; @@ -14,5 +16,7 @@ void array_push(array_t *a, void *item); void *array_pop(array_t *a); +void *array_del(array_t *a, unsigned int ind); + void array_free(void *a, void (*freefunc)(void *)); #endif |