custom-memory-allocator/main.c
2023-05-17 00:08:01 +01:00

19 lines
286 B
C

#include "aliases.h"
#include "allocator.h"
#include <stdio.h>
#include <stdlib.h>
#define BUF_SIZE 10 * 1024 * 1024
i32 main(void) {
allocator_t *alloc = init_allocator(BUF_SIZE);
if (!alloc) {
return EXIT_FAILURE;
}
deinit_allocator(&alloc);
return EXIT_SUCCESS;
}