-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_obj.c
22 lines (19 loc) · 1.02 KB
/
create_obj.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* create_obj.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dkushche <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/02/02 18:38:00 by dkushche #+# #+# */
/* Updated: 2018/02/02 18:38:01 by dkushche ### ########.fr */
/* */
/* ************************************************************************** */
#include "rtv1.h"
void create_obj(t_obj **first)
{
t_obj *obj;
obj = (t_obj *)malloc(sizeof(t_obj));
obj->next = *first;
*first = obj;
}