diff --git a/Makefile b/Makefile index 12c5a9d..9e92341 100644 --- a/Makefile +++ b/Makefile @@ -111,12 +111,7 @@ all: $(ODIR) $(NAME) $(ODIR): # @echo "\033[33mcreate $(ODIR)\033[0m" - @echo "" mkdir -p $(ODIR) - ls - @echo "" - ls srcs/ - @echo "" $(NAME): $(OBJS) $(DEPS) # @echo "\033[33mbuilding $(NAME)\033[0m" diff --git a/srcs/part2/.ft_split.c.swp b/srcs/part2/.ft_split.c.swp index d1ef2c1..817fa98 100644 Binary files a/srcs/part2/.ft_split.c.swp and b/srcs/part2/.ft_split.c.swp differ diff --git a/srcs/part2/.ft_substr.c.swp b/srcs/part2/.ft_substr.c.swp deleted file mode 100644 index af66332..0000000 Binary files a/srcs/part2/.ft_substr.c.swp and /dev/null differ diff --git a/srcs/part2/ft_split.c b/srcs/part2/ft_split.c index cdc8e14..660a76f 100644 --- a/srcs/part2/ft_split.c +++ b/srcs/part2/ft_split.c @@ -6,7 +6,7 @@ /* By: hulamy +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/11/25 14:00:13 by hulamy #+# #+# */ -/* Updated: 2019/11/27 20:43:25 by hulamy ### ########.fr */ +/* Updated: 2019/11/27 20:47:35 by hulamy ### ########.fr */ /* */ /* ************************************************************************** */ @@ -81,12 +81,14 @@ static int ft_count_word(char const *s, char c) i = -1; len = 0; while (s[++i]) + { if (s[i] != c) { len++; while (s[i] && s[i] != c) i++; } + } return (len); }