void * ft_memcpy(void *dst, const void *src, size_t n)
Replicates behaviour of memcpy from libc.
size_t content_size
The size of the data stored in bytes.
A link in a multi-purpose linked list.
void * content
The data contained in the link.
struct s_list * next
The next link’s address or NULL if it’s the last link.
t_list * ft_lstnew(void const *content, size_t content_size)
Allocates a new list.
void * ft_memalloc(size_t size)
Allocates memory of a given size and initializes it to 0.
void ft_memdel(void **ap)
Frees memory where a pointer points to and sets the pointer to NULL.