aboutsummaryrefslogtreecommitdiff
path: root/include/array.h
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2024-12-26 21:18:05 -0800
committerPreston Pan <ret2pop@gmail.com>2024-12-26 21:18:05 -0800
commitfd14f6fbf8206589d2a0ad8f0793845cb8faf1d7 (patch)
treeac3f8288b9e5e9d5e3acaf7d07694dc04157233a /include/array.h
parente75d6f6b8f4512a5bbfecbfa8c17f0bb687e3d55 (diff)
stuff
Diffstat (limited to 'include/array.h')
-rw-r--r--include/array.h4
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