Add main.c
This commit is contained in:
parent
583fc634e4
commit
1442be32bb
18
main.c
Normal file
18
main.c
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user