Skip to content

malletgaetan/gc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gc

Norminette ready Garbage Collector library for 42 projects

Examples

Initialization

t_gcan  gc;
gc_init(&gc);

Allocate memory

ptr = gc_malloc(&gc, sizeof(struct mystruct));

Free memory

// before => ptr != NULL
gc_free(&gc, (void **)&ptr);
// after => ptr == NULL

Free all tracked memory

gc_clean(&gc);

About

minimalist 42 norme ready garbage collector

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published