text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strjoin.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: tderwedu <tderwedu@student.s19.be>         +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2021/01/11 18:10:30 by tderwedu          #+#    #+#             */
  /*   Updated: 2021/05/17 15:42:35 by tderwedu         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  char	*ft_strjoin(char const *s1, char const *s2)
  {
  	char	*dest;
  	size_t	len1;
  	size_t	len2;
  
  	if (!s1 || !s2)
  		return (NULL);
  	len1 = ft_strlen(s1);
  	len2 = ft_strlen(s2);
  	dest = malloc(len1 + len2 + 1);
  	if (!dest)
  		return (NULL);
  	ft_memcpy(dest, s1, len1);
  	ft_memcpy(dest + len1, s2, len2);
  	dest[len1 + len2] = '\0';
  	return (dest);
  }
  