memorybook functionnal, with add
This commit is contained in:
23
srcs/mem/memorybook_utils.c
Normal file
23
srcs/mem/memorybook_utils.c
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "cube3d.h"
|
||||
|
||||
t_exit **mb_exit_func()
|
||||
{
|
||||
static t_exit *texit = NULL;
|
||||
|
||||
if (!texit)
|
||||
texit = mb_alloc(sizeof(t_exit));
|
||||
return (&texit);
|
||||
}
|
||||
|
||||
t_list **mb_lst()
|
||||
{
|
||||
static t_list *lst = NULL;
|
||||
|
||||
return (&lst);
|
||||
}
|
||||
|
||||
int mb_comp_addr(void *to_find, void *to_compare)
|
||||
{
|
||||
return (to_find == to_compare);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user