mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
Expansion: one little problem remaining with * expansion and .
This commit is contained in:
parent
2da7f03a66
commit
da06c0d4e0
4 changed files with 42 additions and 41 deletions
|
|
@ -3,10 +3,10 @@
|
|||
/* ::: :::::::: */
|
||||
/* wordlist_quicksort.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: jguelen <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* By: jguelen <jguelen@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/03/08 17:29:05 by jguelen #+# #+# */
|
||||
/* Updated: 2025/03/19 16:29:58 by jguelen ### ########.fr */
|
||||
/* Updated: 2025/03/20 09:41:04 by jguelen ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ static int wordlist_quicksort_partition(t_wordlist *list, int start, int end)
|
|||
pivot = wordlist_get_elem(list, end);
|
||||
while (j < end)
|
||||
{
|
||||
if (ft_strcmp(list_j->word->word, pivot->word->word) > 0)
|
||||
if (ft_strcmp(list_j->word->word, pivot->word->word) < 0)
|
||||
{
|
||||
ft_swap_wordlist_contents(list_i, list_j);
|
||||
i++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue