-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_datadup.c
23 lines (20 loc) · 1.03 KB
/
ft_datadup.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_datadup.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tle-meur <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/11/23 14:47:43 by tle-meur #+# #+# */
/* Updated: 2015/11/23 14:55:02 by tle-meur ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
t_data *ft_datadup(t_data *other)
{
t_data *add;
add = NULL;
if (other)
add = ft_datanew(other->data, other->data_size);
return (add);
}