aboutsummaryrefslogtreecommitdiff
path: root/ft_split.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-20 04:10:39 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-20 04:10:39 +0100
commitfbdb3cab8614d2c81622604eb1eeb9f42a56c14f (patch)
tree69b09a4729cedc78d097164e753089ad68509d60 /ft_split.c
parent9901cd05849fa0ef396f09f57b07807ebd96ca32 (diff)
parent5bf49994b911abc2b8ff3bdb525cdc23c71f2102 (diff)
downloadlibft-fbdb3cab8614d2c81622604eb1eeb9f42a56c14f.tar.gz
libft-fbdb3cab8614d2c81622604eb1eeb9f42a56c14f.tar.bz2
libft-fbdb3cab8614d2c81622604eb1eeb9f42a56c14f.zip
Merge branch 'rendu'
Diffstat (limited to 'ft_split.c')
-rw-r--r--ft_split.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/ft_split.c b/ft_split.c
index 999c664..6fb5964 100644
--- a/ft_split.c
+++ b/ft_split.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/17 08:29:02 by cacharle #+# #+# */
-/* Updated: 2019/11/20 03:54:26 by cacharle ### ########.fr */
+/* Updated: 2019/11/20 04:08:27 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -33,23 +33,6 @@ static size_t count_segment(char const *s, char c)
return (counter);
}
-static char *ft_strndup(const char *s1, size_t n)
-{
- char *clone;
- size_t i;
-
- if ((clone = (char*)malloc(sizeof(char) * (n + 1))) == NULL)
- return (NULL);
- i = 0;
- while (i < n)
- {
- clone[i] = s1[i];
- i++;
- }
- clone[i] = '\0';
- return (clone);
-}
-
static void *destroy_strs(char **strs)
{
if (strs == NULL)