/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* mem_utils.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: mcolonna +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/12/18 16:37:23 by mcolonna #+# #+# */ /* Updated: 2024/01/23 18:13:29 by mcolonna ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef MEM_UTILS_H # define MEM_UTILS_H # include "libtf.h" # include "mem_utils.h" # include typedef struct s_memclass_in *t_memclass_in; typedef struct s_element t_element; typedef struct s_element { void *address; t_element *previous; t_element *next; t_memclass_in mc; } t_element; typedef struct s_memclass_in { t_element *first; } *t_memclass_in; void *create_address_with_element(t_element *element, size_t size); t_element *get_address_element(void *address); void free_address_with_element(void *address); #endif