diff --git a/Makefile b/Makefile index 36879b0..e6655ef 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: tmaze +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2018/04/07 12:47:06 by tmaze #+# #+# # -# Updated: 2018/10/24 13:38:36 by tmaze ### ########.fr # +# Updated: 2018/10/08 14:33:36 by tmaze ### ########.fr # # # #******************************************************************************# 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); }