15 lines
		
	
	
		
			302 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			15 lines
		
	
	
		
			302 B
		
	
	
	
		
			C
		
	
	
	
	
	
|  | #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; | ||
|  | } |