Minishell
 
Loading...
Searching...
No Matches
garbage_stack.c File Reference
#include "garbage.h"
Include dependency graph for garbage_stack.c:

Functions

t_elementft_garbagenew (void *ptr)
 Allocates and returns the newly created element 'value' is initialised with content 'next' is set to NULL.
 
void ft_garbageadd_front (t_garbage *garbage, t_element *new)
 Adds the 'new' element at the start of stack.
 
void ft_garbageadd_back (t_garbage *garbage, t_element *new)
 Adds the 'new' element at the end of stack.
 
void ft_garbage_free_element (t_element *element)
 
int ft_garbageclear (t_garbage *garbage)
 Remove all elements from garbage.
 

Function Documentation

◆ ft_garbage_free_element()

void ft_garbage_free_element ( t_element * element)
inline