custom-memory-allocator/main.c
2023-05-16 00:10:20 +01:00

19 lines
304 B
C

#include "aliases.h"
#include "allocator.h"
#include <stdio.h>
#include <stdlib.h>
#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;
}