From d971bd8d16608f316396aba7a579d0b1f1af5aeb Mon Sep 17 00:00:00 2001 From: nass1pro Date: Fri, 12 Jun 2020 13:52:58 +0200 Subject: Added e_token enum --- test_mini/libft/src/str/ft_strjoin3.c | 36 ----------------------------------- 1 file changed, 36 deletions(-) delete mode 100644 test_mini/libft/src/str/ft_strjoin3.c (limited to 'test_mini/libft/src/str/ft_strjoin3.c') 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 +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* 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); -} -- cgit