aboutsummaryrefslogtreecommitdiff
path: root/test_mini/libft/src/str/ft_strjoin3.c
diff options
context:
space:
mode:
authornass1pro <nass1pro@gmail.com>2020-06-12 13:52:58 +0200
committernass1pro <nass1pro@gmail.com>2020-06-13 11:45:50 +0200
commitd971bd8d16608f316396aba7a579d0b1f1af5aeb (patch)
tree98ec558582ed20a120e13b4a376fd206fb620da0 /test_mini/libft/src/str/ft_strjoin3.c
parent3136f59540a8dd29e2f096be5a8943e2ddd28431 (diff)
downloadminishell-d971bd8d16608f316396aba7a579d0b1f1af5aeb.tar.gz
minishell-d971bd8d16608f316396aba7a579d0b1f1af5aeb.tar.bz2
minishell-d971bd8d16608f316396aba7a579d0b1f1af5aeb.zip
Added e_token enum
Diffstat (limited to 'test_mini/libft/src/str/ft_strjoin3.c')
-rw-r--r--test_mini/libft/src/str/ft_strjoin3.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/test_mini/libft/src/str/ft_strjoin3.c b/test_mini/libft/src/str/ft_strjoin3.c
deleted file mode 100644
index e5e5530..0000000
--- a/test_mini/libft/src/str/ft_strjoin3.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_strjoin3.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/04/01 18:00:49 by charles #+# #+# */
-/* Updated: 2020/04/01 18:01:43 by charles ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft.h"
-
-/*
-** \brief Join 3 strings in a new malloc'd one
-** \param s1 String 1
-** \param s2 String 2
-** \param s3 String 3
-** \return The joined string
-*/
-
-char *ft_strjoin3(char const *s1, char const *s2, char const *s3)
-{
- char *joined;
-
- if (s1 == NULL || s2 == NULL || s3 == NULL)
- return (NULL);
- if ((joined = (char*)malloc(sizeof(char)
- * (ft_strlen(s1) + ft_strlen(s2) + ft_strlen(s3) + 1))) == NULL)
- return (NULL);
- ft_strcpy(joined, s1);
- ft_strcat(joined, s2);
- ft_strcat(joined, s3);
- return (joined);
-}