memorybook functionnal, with add

This commit is contained in:
Hugo LAMY
2022-03-25 21:27:24 +01:00
parent 02b5d88ea5
commit f645da7885
9 changed files with 113 additions and 110 deletions

View 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);
}