From f00e66cd06e678b133cc1d086ff5d1f620ec4941 Mon Sep 17 00:00:00 2001 From: salad Date: Mon, 27 Apr 2020 19:39:19 +0200 Subject: backslashes as intended, multiline quotes vont me tuer --- libft/src/ft_substr.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libft') diff --git a/libft/src/ft_substr.c b/libft/src/ft_substr.c index 947a305..234ddc4 100644 --- a/libft/src/ft_substr.c +++ b/libft/src/ft_substr.c @@ -18,9 +18,7 @@ char *ft_substr(const char *s, unsigned int start, size_t len) { char *nstr; - size_t i; - i = 0; if (!(nstr = (char*)malloc((len + 1) * sizeof(char)))) return (NULL); ft_strlcpy(nstr, s + start, len + 1); -- cgit v1.2.3