summaryrefslogtreecommitdiffstats
path: root/src/p_args_next.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-27 19:59:20 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-27 19:59:20 +0100
commitc5aae008dee36276154882d8fd56c3bdeb473474 (patch)
treea40740914847ebf39a5f8cb3acf6a48c8b9d61ef /src/p_args_next.c
parentTODO update (diff)
download42-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 'src/p_args_next.c')
-rw-r--r--src/p_args_next.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/p_args_next.c b/src/p_args_next.c
index 1528883..83319be 100644
--- a/src/p_args_next.c
+++ b/src/p_args_next.c
@@ -11,7 +11,6 @@
/* ************************************************************************** */
#include <libft.h>
-#include <stdint.h>
#ifdef __linux__
# include <linux/limits.h>
#else
@@ -24,7 +23,7 @@
static char *p_give_me_an_arg(char tmp[],
const char word[],
- const uint16_t i,
+ const unsigned short i,
const size_t start[])
{
tmp[0] = '\0';
@@ -34,9 +33,9 @@ static char *p_give_me_an_arg(char tmp[],
return (tmp);
}
-void p_del_alloced_words(char *words[], uint16_t to_del)
+void p_del_alloced_words(char *words[], unsigned short to_del)
{
- uint16_t i;
+ unsigned short i;
i = 0;
while (i < to_del)
@@ -46,13 +45,13 @@ void p_del_alloced_words(char *words[], uint16_t to_del)
}
}
-uint16_t p_dup_words(char *words[],
+unsigned short p_dup_words(char *words[],
const char word[],
- const uint16_t argc,
+ const unsigned short argc,
const size_t start[])
{
char tmp[ARG_MAX];
- uint16_t i;
+ unsigned short i;
i = 0;
while (i < argc)