-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strjoinwsep_nfree.c
23 lines (20 loc) · 1.07 KB
/
ft_strjoinwsep_nfree.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strjoinwsep_nfree.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mle-roy <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/02/11 15:28:57 by mle-roy #+# #+# */
/* Updated: 2015/01/31 21:41:43 by mle-roy ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h>
#include "libft.h"
char *ft_strjoinwsep_nfree(char *s1, char const *s2, char const c)
{
char *new;
new = ft_strjoinwsep((const char *)s1, s2, c);
free(s1);
return (new);
}