mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
29 lines
1.1 KiB
C
29 lines
1.1 KiB
C
|
|
/* ************************************************************************** */
|
||
|
|
/* */
|
||
|
|
/* ::: :::::::: */
|
||
|
|
/* simple_cmd.c :+: :+: :+: */
|
||
|
|
/* +:+ +:+ +:+ */
|
||
|
|
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
||
|
|
/* +#+#+#+#+#+ +#+ */
|
||
|
|
/* Created: 2025/02/21 12:30:07 by khais #+# #+# */
|
||
|
|
/* Updated: 2025/02/21 12:36:08 by khais ### ########.fr */
|
||
|
|
/* */
|
||
|
|
/* ************************************************************************** */
|
||
|
|
|
||
|
|
#include "simple_cmd.h"
|
||
|
|
#include "libft.h"
|
||
|
|
|
||
|
|
/*
|
||
|
|
** parse a wordlist and yield a simple command
|
||
|
|
*/
|
||
|
|
t_simple_cmd *simple_cmd_from_wordlist(t_wordlist *words)
|
||
|
|
{
|
||
|
|
(void)words;
|
||
|
|
return (ft_calloc(1, sizeof(t_simple_cmd)));
|
||
|
|
}
|
||
|
|
|
||
|
|
void simple_cmd_destroy(t_simple_cmd *cmd)
|
||
|
|
{
|
||
|
|
free(cmd);
|
||
|
|
}
|