aboutsummaryrefslogtreecommitdiff
path: root/Converter/includes/array.h
diff options
context:
space:
mode:
Diffstat (limited to 'Converter/includes/array.h')
-rw-r--r--Converter/includes/array.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/Converter/includes/array.h b/Converter/includes/array.h
new file mode 100644
index 0000000..003b1fd
--- /dev/null
+++ b/Converter/includes/array.h
@@ -0,0 +1,17 @@
+#ifndef __ARRAY_H_
+#define __ARRAY_H_
+
+#include <stdlib.h>
+
+typedef struct
+{
+ void **data;
+ size_t sz_allocated;
+ size_t sz_used;
+} array_t;
+
+void array_init(array_t *arr);
+void array_append(array_t *arr, void *item);
+void *array_read(array_t *arr, int index);
+
+#endif // __ARRAY_H_