-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_lstset.c
20 lines (18 loc) · 1.08 KB
/
ft_lstset.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstset.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: fokrober <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/05/03 00:43:26 by fokrober #+# #+# */
/* Updated: 2019/05/03 00:50:37 by fokrober ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void *ft_lstset(t_list **elm, void const *content, size_t content_size)
{
(*elm)->content = ft_memdup(content, content_size);
(*elm)->content_size = content_size;
return ((*elm)->content);
}