enleve les lignes de debugs dans le makefile
This commit is contained in:
5
Makefile
5
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"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -6,7 +6,7 @@
|
||||
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user