summaryrefslogtreecommitdiffstats
path: root/src/p_args.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-06 17:56:59 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-06 17:56:59 +0200
commitab69117ff18f8b4a2b13adeada00cabd7d997855 (patch)
treeda037207d06d1bb53bd059504ab98c810450ae07 /src/p_args.c
parentI'm lost (diff)
download42-minishell-ab69117ff18f8b4a2b13adeada00cabd7d997855.tar.gz
42-minishell-ab69117ff18f8b4a2b13adeada00cabd7d997855.tar.bz2
42-minishell-ab69117ff18f8b4a2b13adeada00cabd7d997855.tar.xz
42-minishell-ab69117ff18f8b4a2b13adeada00cabd7d997855.tar.zst
42-minishell-ab69117ff18f8b4a2b13adeada00cabd7d997855.zip
Better defines
Diffstat (limited to 'src/p_args.c')
-rw-r--r--src/p_args.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/p_args.c b/src/p_args.c
index ee2b937..7d5a579 100644
--- a/src/p_args.c
+++ b/src/p_args.c
@@ -96,7 +96,7 @@ static t_bool
static char
*p_skip_whitespace(char *ptr)
{
- while (*ptr != C_NULL && ft_iswhitespace(*ptr))
+ while (*ptr != C_NUL && ft_iswhitespace(*ptr))
ptr++;
return (ptr);
}
@@ -113,8 +113,9 @@ static uint16_t
count = 1;
ptr = p_skip_whitespace(ptr);
start[0] = (ptr - word);
- while (*ptr != C_NULL)
+ while (*ptr != C_NUL)
{
+ if (*ptr == C_BACKS)
if (*ptr == C_DQUOTE)
mode = p_meet_dquote((char*)word, ptr, mode);
else if (*ptr == C_SQUOTE)