42-archive/42sh/src/job_control/jobc_destroy.c
2017-03-27 03:12:24 +02:00

20 lines
1,018 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* jobc_destroy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/27 03:09:41 by jhalford #+# #+# */
/* Updated: 2017/03/27 03:10:55 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int jobc_destroy(t_jobc *jobc)
{
if (jobc)
ft_lstdel(&jobc->first_job, job_free);
return (0);
}