summaryrefslogtreecommitdiffstats
path: root/src/p_args_next.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/p_args_next.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/p_args_next.c b/src/p_args_next.c
index ea8dd81..b1d11e2 100644
--- a/src/p_args_next.c
+++ b/src/p_args_next.c
@@ -18,11 +18,10 @@
#include "p_args.h"
#include "p_args_len.h"
-static char
- *p_give_me_an_arg(char tmp[],
- const char word[],
- const uint16_t i,
- const size_t start[])
+static char *p_give_me_an_arg(char tmp[],
+ const char word[],
+ const uint16_t i,
+ const size_t start[])
{
tmp[0] = '\0';
ft_strlcpy(tmp,
@@ -31,8 +30,7 @@ static char
return (tmp);
}
-void
- p_del_alloced_words(char *words[], uint16_t to_del)
+void p_del_alloced_words(char *words[], uint16_t to_del)
{
uint16_t i;
@@ -44,11 +42,10 @@ void
}
}
-uint16_t
- p_dup_words(char *words[],
- const char word[],
- const uint16_t argc,
- const size_t start[])
+uint16_t p_dup_words(char *words[],
+ const char word[],
+ const uint16_t argc,
+ const size_t start[])
{
char tmp[ARG_MAX];
uint16_t i;
@@ -57,8 +54,7 @@ uint16_t
while (i < argc)
{
if ((words[i] = ft_strdup(
- p_give_me_an_arg(tmp, word, i, start)
- )) == NULL)
+ p_give_me_an_arg(tmp, word, i, start))) == NULL)
return (i);
i++;
}