aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-08 12:32:46 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-08 12:32:46 +0200
commitc33343322ef66d96337533082313b1256862023a (patch)
treec9b38bd4321c30216887113e821b89335a5bf85d
parent3133f0d4d640abd62287187d13d380d03cce00a7 (diff)
downloadlibft-c33343322ef66d96337533082313b1256862023a.tar.gz
libft-c33343322ef66d96337533082313b1256862023a.tar.bz2
libft-c33343322ef66d96337533082313b1256862023a.zip
Added ft_strjoinf_snd
-rw-r--r--include/libft_str.h3
-rw-r--r--src/str/ft_strjoinf.c7
2 files changed, 8 insertions, 2 deletions
diff --git a/include/libft_str.h b/include/libft_str.h
index 816cb68..3a52a2f 100644
--- a/include/libft_str.h
+++ b/include/libft_str.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/31 10:39:22 by cacharle #+# #+# */
-/* Updated: 2020/09/14 15:57:44 by charles ### ########.fr */
+/* Updated: 2020/10/08 09:40:44 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -58,6 +58,7 @@ char *ft_strjoin(char const *s1, char const *s2);
char *ft_strjoin3(char const *s1, char const *s2, char const *s3);
char *ft_strjoinf(char const *s1, char const *s2, t_ftstrjoinf_tag tag);
char *ft_strjoinf_fst(char const *s1, char const *s2);
+char *ft_strjoinf_snd(char const *s1, char const *s2);
char *ft_strtrim(char const *s1, char const *set);
char **ft_split(char const *s, char c);
char **ft_splitf(char *s, char c);
diff --git a/src/str/ft_strjoinf.c b/src/str/ft_strjoinf.c
index 5504ceb..7c96e13 100644
--- a/src/str/ft_strjoinf.c
+++ b/src/str/ft_strjoinf.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/14 03:41:07 by cacharle #+# #+# */
-/* Updated: 2020/08/19 13:31:00 by charles ### ########.fr */
+/* Updated: 2020/10/08 09:40:22 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -35,3 +35,8 @@ char *ft_strjoinf_fst(char const *s1, char const *s2)
{
return (ft_strjoinf(s1, s2, FT_STRJOINF_FST));
}
+
+char *ft_strjoinf_snd(char const *s1, char const *s2)
+{
+ return (ft_strjoinf(s1, s2, FT_STRJOINF_SND));
+}