19 lines
315 B
C
19 lines
315 B
C
#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
|