From 1eef258e7d5c43abfe134a2601afdf73f81ab71c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 27 Oct 2020 20:30:03 +0100 Subject: Normed libft --- libft/src/ft_split.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libft/src/ft_split.c') 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); } -- cgit v1.2.3