Initial commit

This commit is contained in:
2025-10-25 19:15:56 -05:00
commit e6a978d36b
13 changed files with 459 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;
}