Initial commit

This commit is contained in:
2026-01-18 18:38:25 -06:00
commit 7b738da5fb
13 changed files with 466 additions and 0 deletions

14
tests/02_arena_nozero.c Normal file
View File

@@ -0,0 +1,14 @@
#define DEBUG
#include <stdlib.h>
#include <assert.h>
#include "../include/arena.h"
#include "../include/mem.h"
int main(void){
size_t nbytes = 20;
Arena a = ARENA(NOZERO,nbytes);
assert(a.beg != NULL);
assert( !mem_is_zero(a.beg, nbytes));
free(a.beg);
return EXIT_SUCCESS;
}