19 lines
392 B
C
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;
|
|
|
|
}
|