text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strdup.c                                        :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: knaumov <marvin@42.fr>                     +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2018/09/10 13:17:55 by knaumov           #+#    #+#             */
  /*   Updated: 2018/10/03 17:00:43 by knaumov          ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  char	*ft_strdup(const char *s1)
  {
  	char *s2;
  
  	s2 = (char *)malloc(sizeof(char) * (ft_strlen(s1) + 1));
  	if (s2)
  		ft_strcpy(s2, s1);
  	return (s2);
  }
  