diff options
author | Preston Pan <ret2pop@gmail.com> | 2024-12-26 21:18:05 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2024-12-26 21:18:05 -0800 |
commit | fd14f6fbf8206589d2a0ad8f0793845cb8faf1d7 (patch) | |
tree | ac3f8288b9e5e9d5e3acaf7d07694dc04157233a /include/array.h | |
parent | e75d6f6b8f4512a5bbfecbfa8c17f0bb687e3d55 (diff) |
stuff
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 |