From: Christopher Uhlig Date: Mon, 5 Aug 2024 11:43:07 +0000 (+0200) Subject: remove strncpy out of tokenizer f X-Git-Url: https://git.dkaiser.de/?a=commitdiff_plain;h=68af24d0597b06516891199bde4178a2d1552e09;p=42%2Fminishell.git remove strncpy out of tokenizer f --- 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)