diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 |
commit | c5aae008dee36276154882d8fd56c3bdeb473474 (patch) | |
tree | a40740914847ebf39a5f8cb3acf6a48c8b9d61ef /src/p_args.c | |
parent | TODO update (diff) | |
download | 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.gz 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.bz2 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.xz 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.zst 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.zip |
Now norme
Diffstat (limited to '')
-rw-r--r-- | src/p_args.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/p_args.c b/src/p_args.c index d005947..f50d52b 100644 --- a/src/p_args.c +++ b/src/p_args.c @@ -11,7 +11,6 @@ /* ************************************************************************** */ #include <libft.h> -#include <stdint.h> #include <stdlib.h> #include "d_define.h" @@ -53,9 +52,9 @@ static char *p_skip_whitespace(char *ptr) ** TODO: quotes parse error */ -static uint16_t p_count_args(const char word[], +static unsigned short p_count_args(const char word[], size_t start[], - uint16_t count, + unsigned short count, t_quote_mode mode) { char *ptr; @@ -88,8 +87,8 @@ char **p_split_args(char word[]) { size_t start[512]; char **words; - uint16_t argc; - uint16_t to_del; + unsigned short argc; + unsigned short to_del; words = NULL; argc = p_count_args(word, start, 1, Q_NONE); |