simple_cmd: initial setup of create/destroy functions

This commit is contained in:
Khaïs COLIN 2025-02-21 12:35:51 +01:00
parent 6f175dd792
commit 49d7a2b9ff
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
6 changed files with 96 additions and 3 deletions

View file

@ -0,0 +1,28 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 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);
}