Functions to free the allocated memory when it's not needed anymore. More...
Functions | |
void | free_array (t_garbage *garbage, char **array) |
Free array of strings. | |
void | free_command (t_garbage *garbage, t_command *command) |
Free one t_command structure with all that it contains. | |
void | free_commands (t_garbage *garbage, t_command **command) |
Free t_command linked list structure with all that it contains. | |
void | free_files_struct (t_garbage *garbage, t_file *file) |
Free linked list of t_file structure. | |
void | free_heredoc (t_garbage *garbage, t_tmp *tmp) |
Free heredoc structure. | |
void | free_tokens (t_garbage *garbage, t_token *token) |
Free t_tokens linked list structure. | |
Functions to free the allocated memory when it's not needed anymore.
void free_array | ( | t_garbage * | garbage, |
char ** | array ) |
Free array of strings.
garbage | garbage structure |
array | array of strings |
Free heredoc structure.
garbage | garbage structure |
tmp | heredoc structure |