summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
author@syxhe <https://t.me/syxhe>2025-03-30 23:13:35 -0500
committer@syxhe <https://t.me/syxhe>2025-03-30 23:13:35 -0500
commit833cb417608eb138d3a9b99dc995c5c1aeffd1cd (patch)
tree9698c034adb7e5124e91ac79b8eb4d68b047a0f9 /src/main.c
parent97713275dc87ea1d0afa4fd6bc49f695ad40efc0 (diff)
Create encryption functions that actually work
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/main.c b/src/main.c
index d76e20d..fc1044a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -10,25 +10,7 @@
10#include <string.h> 10#include <string.h>
11#include <stdlib.h> 11#include <stdlib.h>
12int main() { 12int main() {
13 // error(1, ENOTSUP, "No main file lol"); 13 error(1, ENOTSUP, "No main file lol");
14
15 // Testing Arena changes
16 const int DATA[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
17
18 arena *arena = arena_init(sizeof(DATA));
19 if(!arena)
20 error(1, errno, "Could not initialize arena");
21
22 int *nums = arena_alloc(arena, sizeof(DATA));
23 if(!nums)
24 error(1, errno, "Could not allocate memory");
25
26 memmove(nums, DATA, sizeof(DATA));
27 for(unsigned int i = 0; i < STATIC_ARRAY_LEN(DATA); i++)
28 printf("%d ", nums[i]);
29 printf("\n");
30
31 arena_free(&arena);
32 14
33 return 0; 15 return 0;
34} \ No newline at end of file 16} \ No newline at end of file