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/str/ft_split.c | |
| 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/str/ft_split.c')
| -rw-r--r-- | src/str/ft_split.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/str/ft_split.c b/src/str/ft_split.c index 0cb08e4..5d164d4 100644 --- a/src/str/ft_split.c +++ b/src/str/ft_split.c @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/17 08:29:02 by cacharle #+# #+# */ -/* Updated: 2020/05/08 13:39:31 by charles ### ########.fr */ +/* Updated: 2020/05/11 15:54:10 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -55,7 +55,7 @@ char **ft_split(char const *s, char c) while (s[j + i] && s[j + i] != c) i++; if ((strs[tab_counter++] = ft_strndup(&s[j], i)) == NULL) - return (ft_split_destroy(strs)); + return (ft_strsdestroy(strs)); j += i - 1; } strs[tab_counter] = NULL; |
