libft
|
#include "libft.h"
Go to the source code of this file.
Functions | |
char * | ft_strjoin (const char *s1, const char *s2) |
Joins two strings. More... | |
char* ft_strjoin | ( | const char * | s1, |
const char * | s2 | ||
) |
Joins two strings.
Allocates (with malloc
) and returns a “fresh” string ending with '\0'
, result of the concatenation of s1
and s2
. If the allocation fails the function returns NULL
.
s1 | The prefix string. |
s2 | The suffix string. |
Definition at line 26 of file ft_strjoin.c.