summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-27 20:30:03 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-27 20:30:03 +0100
commit1eef258e7d5c43abfe134a2601afdf73f81ab71c (patch)
tree3dceddcfa0222a3ccb215059aab8303563531093
parentNorming libft (diff)
download42-minishell-1eef258e7d5c43abfe134a2601afdf73f81ab71c.tar.gz
42-minishell-1eef258e7d5c43abfe134a2601afdf73f81ab71c.tar.bz2
42-minishell-1eef258e7d5c43abfe134a2601afdf73f81ab71c.tar.xz
42-minishell-1eef258e7d5c43abfe134a2601afdf73f81ab71c.tar.zst
42-minishell-1eef258e7d5c43abfe134a2601afdf73f81ab71c.zip
Normed libft
-rw-r--r--libft/src/ft_split.c10
-rw-r--r--libft/src/ft_uitoa.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/libft/src/ft_split.c b/libft/src/ft_split.c
index 69aeefe..a9d9376 100644
--- a/libft/src/ft_split.c
+++ b/libft/src/ft_split.c
@@ -18,23 +18,23 @@ static size_t ft_count_words(const char *s, char c)
{
size_t i;
size_t count;
- unsigned char ibool;
+ t_bool ibool;
i = 0;
count = 0;
- ibool = 1;
+ ibool = TRUE;
while (s[i])
{
while (s[i] == c && s[i])
i++;
while (s[i] != c && s[i])
{
- if (ibool == 1)
+ if (ibool == TRUE)
count++;
- ibool = 0;
+ ibool = FALSE;
i++;
}
- ibool = 1;
+ ibool = TRUE;
}
return (count);
}
diff --git a/libft/src/ft_uitoa.c b/libft/src/ft_uitoa.c
index 9a58b32..89d8245 100644
--- a/libft/src/ft_uitoa.c
+++ b/libft/src/ft_uitoa.c
@@ -17,7 +17,7 @@ char *ft_uitoa(unsigned long n)
{
char *s;
unsigned long nb;
- unsigned char i;
+ unsigned char i;
i = ft_uintlen(n) - 1;
if (!(s = (char*)malloc((i + 2) * sizeof(char))))