-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_pfun.c
22 lines (20 loc) · 1.05 KB
/
run_pfun.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* run_pfun.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: qle-guen <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/10/19 13:21:22 by qle-guen #+# #+# */
/* Updated: 2016/10/19 15:24:13 by qle-guen ### ########.fr */
/* */
/* ************************************************************************** */
#include "libparse.h"
char *run_pfun(t_pfun p, char *inp)
{
if (p.type == CONS)
return (RUNCONS(p, inp));
if (p.type == COMB)
return (RUNCOMB(p, inp));
return (RUNUNI(p, inp));
}