]> git.dkaiser.de - 42/minishell.git/commitdiff
remove strncpy out of tokenizer f
authorChristopher Uhlig <chuhlig@2-D-4.42heilbronn.de>
Mon, 5 Aug 2024 11:43:07 +0000 (13:43 +0200)
committerChristopher Uhlig <chuhlig@2-D-4.42heilbronn.de>
Mon, 5 Aug 2024 11:43:07 +0000 (13:43 +0200)
src/tokenizer.c

index 5aa48956b67a0597e27e7a3687b07615c249ea48..a2f6fa443fa30dc3adde7f450263f8abe8bfcc14 100644 (file)
@@ -6,23 +6,13 @@
 /*   By: chuhlig <chuhlig@student.42.fr>            +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   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)