Norminette ready Garbage Collector library for 42 projects
t_gcan gc;
gc_init(&gc);
ptr = gc_malloc(&gc, sizeof(struct mystruct));
// before => ptr != NULL
gc_free(&gc, (void **)&ptr);
// after => ptr == NULL
gc_clean(&gc);
Norminette ready Garbage Collector library for 42 projects
t_gcan gc;
gc_init(&gc);
ptr = gc_malloc(&gc, sizeof(struct mystruct));
// before => ptr != NULL
gc_free(&gc, (void **)&ptr);
// after => ptr == NULL
gc_clean(&gc);