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.
16 lines
203 B
16 lines
203 B
#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);
|
|
}
|
|
|