mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
wordsplit: handle single word with spaces before or after
This commit is contained in:
parent
fc985ea046
commit
8defbf4d13
9 changed files with 154 additions and 16 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/13 17:07:01 by khais #+# #+# */
|
||||
/* Updated: 2025/02/14 13:29:16 by khais ### ########.fr */
|
||||
/* Updated: 2025/02/14 13:56:45 by khais ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -37,6 +37,9 @@ t_wordlist *wordlist_create(t_worddesc *word)
|
|||
*/
|
||||
void wordlist_destroy(t_wordlist *wordlist)
|
||||
{
|
||||
if (wordlist == NULL)
|
||||
return ;
|
||||
worddesc_destroy(wordlist->word);
|
||||
free(wordlist);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue