maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
stack_control_2.c
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* stack_control_2.c :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: rmikhayl <marvin@42.fr> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2024/06/05 13:32:45 by rmikhayl #+# #+# */
9/* Updated: 2024/07/11 18:45:52 by dmdemirk ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#include "tokens.h"
14
15void build_linked_list(t_token **tokens, char **argv)
16{
17 int i;
18
19 i = 0;
20 while (argv[i])
21 {
22 add_node(tokens, argv[i]);
23 i++;
24 }
25}
void build_linked_list(t_token **tokens, char **argv)
void add_node(t_token **head, char *str)