ft_strdup - kibotrel/42-Libft GitHub Wiki

char	*ft_strdup(const char *s1)

Description :

Duplicates the string s1.

Return Value :

Returns a new allocated string where s1 is copied followed by a \0.

Source code