arena/tests/03_arena.c

19 lines
392 B
C
Raw Normal View History

2024-11-15 22:40:33 +00:00
#define DEBUG
#include "../include/arena.h"
#include <stdio.h>
#include <stdlib.h>
int main(void){
printf("\n\n");
unsigned char backing_buffer[256];
Arena a = {0};
arena_back(&a, backing_buffer, 256);
arena_print(&a);
arena_alloc(&a,10,1,5);
Arena b = arena_new(512);
arena_print(&b);
arena_print(&a);
free(b.beg);
return EXIT_SUCCESS;
}