maxishell
Implementation of a shell for Linux-like systems
|
#include "tokens.h"
Go to the source code of this file.
Functions | |
void | add_node (t_token **head, char *str) |
void | print_stack (t_token **stack) |
void | free_stack (t_token **stack) |
int | calc_stack_size (t_token *stack) |
char ** | list_to_array (t_token *head) |
void add_node | ( | t_token ** | head, |
char * | str | ||
) |
Definition at line 15 of file stack_control.c.
References s_token::data, and s_token::next.
Referenced by build_linked_list().
int calc_stack_size | ( | t_token * | stack | ) |
Definition at line 65 of file stack_control.c.
References s_token::next.
Referenced by list_to_array().
void free_stack | ( | t_token ** | stack | ) |
Definition at line 51 of file stack_control.c.
References s_token::next.
char ** list_to_array | ( | t_token * | head | ) |
Definition at line 80 of file stack_control.c.
References calc_stack_size(), s_token::data, ft_strdup(), and s_token::next.
void print_stack | ( | t_token ** | stack | ) |
Definition at line 36 of file stack_control.c.
References s_token::data, ft_printf(), and s_token::next.