diff options
Diffstat (limited to 'libft/src/str/ft_splitf.c')
| -rw-r--r-- | libft/src/str/ft_splitf.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libft/src/str/ft_splitf.c b/libft/src/str/ft_splitf.c new file mode 100644 index 0000000..2a1afab --- /dev/null +++ b/libft/src/str/ft_splitf.c @@ -0,0 +1,22 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_splitf.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/06/09 17:45:52 by charles #+# #+# */ +/* Updated: 2020/06/09 17:47:17 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "libft_str.h" + +char **ft_splitf(char *s, char delim) +{ + char **ret; + + ret = ft_split(s, delim); + free(s); + return (ret); +} |
