42-archive/42sh/src/exec/plaunch_function.c
2017-03-20 18:18:34 +01:00

19 lines
1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* plaunch_function.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: wescande <wescande@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/08 03:23:59 by wescande #+# #+# */
/* Updated: 2017/03/20 18:15:21 by gwojda ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int plaunch_function(t_process *p)
{
ft_exec(&p->data.function.content);
return (ft_atoi(ft_getenv(data_singleton()->env, "?")));
}