From 68af24d0597b06516891199bde4178a2d1552e09 Mon Sep 17 00:00:00 2001 From: Christopher Uhlig Date: Mon, 5 Aug 2024 13:43:07 +0200 Subject: [PATCH] remove strncpy out of tokenizer f --- src/tokenizer.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/tokenizer.c b/src/tokenizer.c index 5aa4895..a2f6fa4 100644 --- a/src/tokenizer.c +++ b/src/tokenizer.c @@ -6,23 +6,13 @@ /* By: chuhlig +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/28 20:55:50 by chuhlig #+# #+# */ -/* Updated: 2024/08/05 13:24:59 by chuhlig ### ########.fr */ +/* Updated: 2024/08/05 13:41:54 by chuhlig ### ########.fr */ /* */ /* ************************************************************************** */ #include "minishell.h" #include "token.h" -char *ft_strncpy(char *s1, char *s2, int n) -{ - int i; - - i = -1; - while (++i < n && s2[i]) - s1[i] = s2[i]; - return (s1); -} - void print_token(t_token *token) { if (token->type == STRING_TOKEN) -- 2.47.2