aboutsummaryrefslogtreecommitdiff
path: root/ft_strjoin_free_snd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strjoin_free_snd.c')
-rw-r--r--ft_strjoin_free_snd.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/ft_strjoin_free_snd.c b/ft_strjoin_free_snd.c
deleted file mode 100644
index 0503211..0000000
--- a/ft_strjoin_free_snd.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_strjoin_free_snd.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2019/11/05 22:12:56 by cacharle #+# #+# */
-/* Updated: 2019/11/14 10:07:19 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include <stdlib.h>
-#include "libft.h"
-
-char *ft_strjoin_free_snd(char const *s1, char const *s2)
-{
- char *joined;
-
- if (s1 == NULL || s2 == NULL)
- return (NULL);
- if ((joined = ft_strjoin(s1, s2)) == NULL)
- return (NULL);
- free((void*)s2);
- return (joined);
-}