Skip to content

LanzaSchneider/lanzalloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lanzalloc

A simple memory allocation library

example

#define BUF_SIZE 256  
unsigned char buffer[BUF_SIZE];  
struct lanzalloc* lanzalloc;  
if (!(lanzalloc = lanzalloc_initialize(buffer, BUF_SIZE, 10))) {  
    /* ERROR HANDLING */  
}  
unsigned char* ptr = (unsigned char*)lanzalloc_alloc(lanzalloc, 32);  
/* DO SOMETHING */  
lanzalloc_free(lanzalloc, ptr);  

About

A simple memory allocation library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages