enleve les lignes de debugs dans le makefile

This commit is contained in:
Hugo LAMY
2019-11-27 20:56:58 +01:00
parent a5aa001b26
commit 7c97628f5c
4 changed files with 3 additions and 6 deletions

View File

@@ -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.

View File

@@ -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);
}