arena/tests/03_arena.c
2024-11-15 16:40:33 -06:00

19 lines
392 B
C

#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;
}