-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_co.c
25 lines (22 loc) · 1.06 KB
/
add_co.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* add_co.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yabdulha <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/10/09 15:49:50 by yabdulha #+# #+# */
/* Updated: 2018/10/20 15:11:23 by yabdulha ### ########.fr */
/* */
/* ************************************************************************** */
#include "filler.h"
void add_co(int x, int y, t_co **head, char c)
{
t_co *new;
new = (t_co*)malloc(sizeof(*new));
new->x = x;
new->y = y;
new->c = c;
new->next = *head;
*head = new;
}