memorybook functionnal, with add
This commit is contained in:
18
headers/memorybook.h
Normal file
18
headers/memorybook.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef MEMORYBOOK_H
|
||||
# define MEMORYBOOK_H
|
||||
|
||||
typedef void(*t_mb_func_exit)(void*);
|
||||
|
||||
typedef struct s_exit
|
||||
{
|
||||
t_mb_func_exit f;
|
||||
void *param;
|
||||
} t_exit;
|
||||
|
||||
void mb_init(void(*f)(void*), void *param);
|
||||
void *mb_alloc(size_t size);
|
||||
void mb_add(void *addr);
|
||||
void mb_free(void *addr);
|
||||
void mb_exit(char *str);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user