aboutsummaryrefslogtreecommitdiff
path: root/src/str/ft_strsjoinf.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-04-04 15:58:24 +0200
committerCharles <sircharlesaze@gmail.com>2020-04-04 15:58:24 +0200
commit51b845a6a202b50966f50e166cfb11bcbdccbe33 (patch)
tree35658c668ab4aa9214f311b209996c52fc8030e0 /src/str/ft_strsjoinf.c
parent636c3ff6b600c291a40877ac52d8b0a1a58b9b79 (diff)
downloadlibft-51b845a6a202b50966f50e166cfb11bcbdccbe33.tar.gz
libft-51b845a6a202b50966f50e166cfb11bcbdccbe33.tar.bz2
libft-51b845a6a202b50966f50e166cfb11bcbdccbe33.zip
Added ft_strsjoin, ft_strsjoinf, ft_compar_str, ft_vecsort, ft_vecpush_safe
Diffstat (limited to 'src/str/ft_strsjoinf.c')
-rw-r--r--src/str/ft_strsjoinf.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/str/ft_strsjoinf.c b/src/str/ft_strsjoinf.c
new file mode 100644
index 0000000..f5077c1
--- /dev/null
+++ b/src/str/ft_strsjoinf.c
@@ -0,0 +1,22 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_strsjoinf.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/04/04 14:27:33 by charles #+# #+# */
+/* Updated: 2020/04/04 14:29:49 by charles ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft_str.h"
+
+char *ft_strsjoinf(char **strs, char *delim)
+{
+ char *ret;
+
+ ret = ft_strsjoin(strs, delim);
+ ft_split_destroy(strs);
+ return (ret);
+}