-
Notifications
You must be signed in to change notification settings - Fork 0
/
cons.c
24 lines (21 loc) · 1.07 KB
/
cons.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* cons.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: qle-guen <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/10/19 14:49:41 by qle-guen #+# #+# */
/* Updated: 2016/10/19 15:26:18 by qle-guen ### ########.fr */
/* */
/* ************************************************************************** */
#include "libparse.h"
t_pfun cons(char *(*f)(t_parg, char *), t_parg arg)
{
t_pfun ret;
ret.t = malloc(sizeof(*ret.t));
ret.t->cons.f = f;
ret.t->cons.arg = arg;
ret.type = CONS;
return (ret);
}