diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-05-11 16:14:38 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-05-11 16:14:38 +0200 |
| commit | b9f000a80cbba38b8f21c9737a42f07573ec7b91 (patch) | |
| tree | 7068e7188dab0a710ae79d71800b329ab655e3eb /src/util | |
| parent | a4b9cda7d6733f2b077f8586e3b3e69351e7dfba (diff) | |
| download | libft-b9f000a80cbba38b8f21c9737a42f07573ec7b91.tar.gz libft-b9f000a80cbba38b8f21c9737a42f07573ec7b91.tar.bz2 libft-b9f000a80cbba38b8f21c9737a42f07573ec7b91.zip | |
Moved util/ft_split* in str, Added ft_memjoin and ft_memjoinf1, Modified ft_getfile so that it can read non-ascii file
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); -} |
