aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.c
diff options
context:
space:
mode:
authorChristopher Uhlig2024-08-05 13:43:07 +0200
committerChristopher Uhlig2024-08-05 13:43:07 +0200
commit68af24d0597b06516891199bde4178a2d1552e09 (patch)
tree15c897a328f898edec37956903cae86802fdeff4 /src/tokenizer.c
parentd6e50007009baf751930aec184218b4ced7dda19 (diff)
downloadminishell-68af24d0597b06516891199bde4178a2d1552e09.tar.gz
minishell-68af24d0597b06516891199bde4178a2d1552e09.zip
remove strncpy out of tokenizer f
Diffstat (limited to 'src/tokenizer.c')
-rw-r--r--src/tokenizer.c12
1 files changed, 1 insertions, 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 <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)