You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
203 B
17 lines
203 B
2 years ago
|
#include "../libft.h"
|
||
|
|
||
|
char *ft_append(char *s1, char *s2)
|
||
|
{
|
||
|
char *ret;
|
||
|
|
||
|
ret = NULL;
|
||
|
if (!s1)
|
||
|
return (s2);
|
||
|
if (!s2)
|
||
|
return (s1);
|
||
|
ret = ft_strjoin(s1, s2);
|
||
|
free(s1);
|
||
|
free(s2);
|
||
|
return (ret);
|
||
|
}
|