/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* token_list_index.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: qmennen +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/03/05 20:53:34 by qmennen #+# #+# */ /* Updated: 2025/03/05 21:00:01 by qmennen ### ########.fr */ /* */ /* ************************************************************************** */ #include "minishell.h" t_list *token_list_index(t_list *tokens, int index) { t_list *current; int i; i = 0; current = tokens; while ((i++) < index && current) current = current->next; return (current); }