aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authoraindros <aindros@hotmail.com>2020-01-08 22:11:47 +0100
committeraindros <aindros@hotmail.com>2020-01-08 22:11:47 +0100
commitd62f358393ba80825bb340a96be789ba314e3960 (patch)
treec4166dede6e543d0e11d5aae260046728172c2d3 /src/main.c
parent50928935b894acb32916bf971d719428cf19ac8c (diff)
downloadutils-d62f358393ba80825bb340a96be789ba314e3960.tar.gz
utils-d62f358393ba80825bb340a96be789ba314e3960.zip
src
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
new file mode 100644
index 0000000..9361ae6
--- /dev/null
+++ b/src/main.c
@@ -0,0 +1,19 @@
+#include <stdio.h>
+#include "list.h"
+
+int main(int argc, char** argv)
+{
+ int test1 = 5;
+ int test2 = 32;
+
+ List* list = List_Create();
+
+ List_Add(list, &test1, sizeof(int));
+ List_Add(list, &test2, sizeof(int));
+
+ int* t = list->data;
+
+ printf("Valore: %i, size: %i\n", *t, list->size);
+
+ return 0;
+}