diff options
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/ft_split_destroy.c | 24 | ||||
| -rw-r--r-- | src/util/ft_split_len.c | 23 |
2 files changed, 0 insertions, 47 deletions
diff --git a/src/util/ft_split_destroy.c b/src/util/ft_split_destroy.c deleted file mode 100644 index bc3f4e6..0000000 --- a/src/util/ft_split_destroy.c +++ /dev/null @@ -1,24 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* ft_split_destroy.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2020/02/27 16:30:55 by cacharle #+# #+# */ -/* Updated: 2020/02/27 17:52:31 by cacharle ### ########.fr */ -/* */ -/* ************************************************************************** */ - -#include "libft_util.h" - -void *ft_split_destroy(char **strs) -{ - int i; - - i = -1; - while (strs[++i] != NULL) - free(strs[i]); - free(strs); - return (NULL); -} diff --git a/src/util/ft_split_len.c b/src/util/ft_split_len.c deleted file mode 100644 index 090a0c9..0000000 --- a/src/util/ft_split_len.c +++ /dev/null @@ -1,23 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* ft_split_len.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2020/05/10 20:58:46 by charles #+# #+# */ -/* Updated: 2020/05/10 21:02:08 by charles ### ########.fr */ -/* */ -/* ************************************************************************** */ - -#include "libft_util.h" - -size_t ft_split_len(char **split) -{ - size_t count; - - count = 0; - while (split[count] != NULL) - count++; - return (count); -} |
