text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strdup.c                                        :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: lrudowic <lrudowic@student.42.fr>          +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2019/04/30 18:01:36 by lrudowic          #+#    #+#             */
  /*   Updated: 2019/05/20 16:41:20 by lrudowic         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  char	*ft_strdup(const char *s1)
  {
  	size_t	len;
  	void	*new;
  
  	len = ft_strlen(s1) + 1;
  	new = (char *)malloc(len);
  	if (new == NULL)
  		return (NULL);
  	return ((char *)ft_memcpy(new, s1, len));
  }
  