From 1442be32bbbed703512a24a0c3b5c01caaa7c7ce Mon Sep 17 00:00:00 2001 From: Abdelrahman Said Date: Tue, 16 May 2023 00:10:20 +0100 Subject: [PATCH] Add main.c --- main.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 main.c diff --git a/main.c b/main.c new file mode 100644 index 0000000..671ca6a --- /dev/null +++ b/main.c @@ -0,0 +1,18 @@ +#include "aliases.h" +#include "allocator.h" +#include +#include + +#define BUF_SIZE 10 * 1024 * 1024 + +i32 main(i32 argc, char *argv[]) { + allocator_t *alloc = init_allocator(BUF_SIZE); + + if (!alloc) { + return EXIT_FAILURE; + } + + deinit_allocator(&alloc); + + return EXIT_SUCCESS; +}