Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No norming errors anymore except 42 headers. #12

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions srcs/ft_arr_/ft_array_push_index.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ static int s_return_and_free(char **new_array, size_t total)
return (-1);
}

static int s_iterate_on_array(char **array, char ***new_array,
size_t index, size_t *total)
static int s_iterate_on_array(char **array, char ***new_array,
size_t index, size_t *total)
{
size_t i;

Expand All @@ -42,7 +42,7 @@ static int s_iterate_on_array(char **array, char ***new_array,
}

int ft_array_push_index(char ***array, char const *value,
size_t const index)
size_t const index)
{
char **new_array;
size_t total;
Expand Down
6 changes: 3 additions & 3 deletions srcs/ft_str_/ft_strjoin3.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ char *ft_strjoin3(char const *s1, char const *s2, char const *s3)
{
len = -1;
i = -1;
while(s1[++i])
while (s1[++i])
new[++len] = s1[i];
i = -1;
while(s2[++i])
while (s2[++i])
new[++len] = s2[i];
i = -1;
while(s3[++i])
while (s3[++i])
new[++len] = s3[i];
return (new);
}
Expand Down
14 changes: 7 additions & 7 deletions srcs/ft_str_/ft_strjoin3_safe.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "libft.h"

char *ft_strjoin3_safe(char const *s1, char const *s2, char const *s3)
char *ft_strjoin3_safe(char const *s1, char const *s2, char const *s3)
{
char *new;
size_t len;
size_t i;
char *new;
size_t len;
size_t i;

len = 0;
if (s1)
Expand All @@ -17,13 +17,13 @@ char *ft_strjoin3_safe(char const *s1, char const *s2, char const *s3)
return (NULL);
len = -1;
if (s1 && (i = -1))
while(s1[++i])
while (s1[++i])
new[++len] = s1[i];
if (s2 && (i = -1))
while(s2[++i])
while (s2[++i])
new[++len] = s2[i];
if (s3 && (i = -1))
while(s3[++i])
while (s3[++i])
new[++len] = s3[i];
return (new);
}