diff options
Diffstat (limited to '')
-rw-r--r-- | src/p_args_next.c | 13 |
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) |