From c5aae008dee36276154882d8fd56c3bdeb473474 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 27 Oct 2020 19:59:20 +0100 Subject: Now norme --- src/p_args_next.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/p_args_next.c') 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 -#include #ifdef __linux__ # include #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) -- cgit v1.2.3