-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patht_wire.c
25 lines (22 loc) · 1.06 KB
/
t_wire.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* t_wire.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dmoureu- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/01/08 15:11:52 by dmoureu- #+# #+# */
/* Updated: 2016/01/09 19:28:05 by dmoureu- ### ########.fr */
/* */
/* ************************************************************************** */
#include "fdf.h"
t_wire *wire(t_dot *d1, t_dot *d2)
{
t_wire *wire;
wire = (t_wire*)malloc(sizeof(t_wire));
if (!wire)
return (NULL);
wire->d1 = d1;
wire->d2 = d2;
return (wire);
}