minishell
Minishell Project for École 42
|
Handling of quoted strings in the minishell project. More...
#include "minishell.h"
Functions | |
char * | handle_quotes (t_shell *shell, char **str, char end_quote, t_expander *inter) |
Handles quoted strings within a shell command. | |
Handling of quoted strings in the minishell project.
This file contains functions related to the handling of quoted strings within the minishell project. Quoted strings are enclosed in single (' ') or double (" ") quotes and may contain variable expansions.
char * handle_quotes | ( | t_shell * | shell, |
char ** | str, | ||
char | end_quote, | ||
t_expander * | inter | ||
) |
Handles quoted strings within a shell command.
This function processes quoted strings within a shell command, including variable expansions if present. It handles both single (' ') and double (" ") quotes.
[in] | shell | A pointer to the shell struct. |
[in,out] | str | A pointer to the command string to be processed. |
[in] | end_quote | The character that marks the end of the quoted string (' ' or " "). |
[in,out] | inter | A pointer to the expander struct. |