ft_strjoin
Subject
FT_STRJOIN (simplified)
NAME
ft_strjoin -- concatenate 2 strings in a new string
SYNOPSIS
char *ft_strjoin(const char *s1, const char *s2);
DESCRIPTION
Allocate (with malloc(3)) and returns a new string resulting from the concatenation of s1 and s2.
PARAMETERS
s1: prefix string
s2: suffix string
RETURN VALUES
ft_strjoin() returns the new string; NULL if the memory allocation failed.
AUTHORIZED EXTERNAL FUNCTIONS
malloc(3)Understandable explanation
Hints
Commented solution
Last updated