aboutsummaryrefslogtreecommitdiff
path: root/include/array.h
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2024-12-28 16:47:43 -0800
committerPreston Pan <ret2pop@gmail.com>2024-12-28 16:47:43 -0800
commit1fd608288ee47c2c560817f12f14b21069fed2f6 (patch)
treee6460b92dba5bb0d089c8c2a4e794e3504098359 /include/array.h
parent63f11aaec8d21844a07fd27003a992c102a3a297 (diff)
makefile and directory structure change completely to build client and server
Diffstat (limited to 'include/array.h')
-rw-r--r--include/array.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/include/array.h b/include/array.h
deleted file mode 100644
index 948dad2..0000000
--- a/include/array.h
+++ /dev/null
@@ -1,23 +0,0 @@
-#ifndef ARRAY_H
-#define ARRAY_H
-
-#include <stdlib.h>
-#define DEFAULT_ARR_LEN 10
-
-typedef struct {
- void **items;
- size_t size;
- size_t capacity;
-} array_t;
-
-array_t *init_array();
-
-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