From 81a748516d030ed595455a0b6a6dd65c035f8ffd Mon Sep 17 00:00:00 2001 From: Tanguy MAZE Date: Mon, 8 Oct 2018 14:33:51 +0200 Subject: [PATCH 1/2] removed -g --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 766f7cc..480f3ea 100644 --- a/Makefile +++ b/Makefile @@ -6,12 +6,12 @@ # By: tmaze +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2018/04/07 12:47:06 by tmaze #+# #+# # -# Updated: 2018/10/02 16:05:34 by tmaze ### ########.fr # +# Updated: 2018/10/08 14:33:36 by tmaze ### ########.fr # # # #******************************************************************************# CC = gcc -CCFLAGS = -Wall -Werror -Wextra -g +CCFLAGS = -Wall -Werror -Wextra CCSTD = NAME = libft.a From be305ae3816207eb3a8c2588f98925378b6d27e7 Mon Sep 17 00:00:00 2001 From: Tanguy MAZE Date: Mon, 8 Oct 2018 15:21:57 +0200 Subject: [PATCH 2/2] removed printf --- ft_strnchr.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ft_strnchr.c b/ft_strnchr.c index 35da5a7..6fc56c5 100644 --- a/ft_strnchr.c +++ b/ft_strnchr.c @@ -6,11 +6,10 @@ /* By: tmaze +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2018/05/16 11:41:02 by tmaze #+# #+# */ -/* Updated: 2018/05/16 11:56:15 by tmaze ### ########.fr */ +/* Updated: 2018/10/08 15:21:15 by tmaze ### ########.fr */ /* */ /* ************************************************************************** */ -#include #include "libft.h" char *ft_strnchr(const char *s, int c, int n) @@ -21,10 +20,7 @@ char *ft_strnchr(const char *s, int c, int n) i = -1; tmp = (char*)s; while ((++i == 0 || tmp[i - 1]) && n > 0 && i < n) - { - printf("loop %d\nc: %c\ntmp[i]: %c\n", i, c, tmp[i]); if (tmp[i] == c) return (&tmp[i]); - } return (NULL); }