text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strncpy.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: lsandor- <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2018/11/23 13:59:44 by lsandor-          #+#    #+#             */
  /*   Updated: 2018/11/23 14:20:11 by lsandor-         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include <string.h>
  
  char	*ft_strncpy(char *dst, const char *src, size_t len)
  {
  	size_t i;
  
  	i = 0;
  	while (i < len && src[i] != '\0')
  	{
  		dst[i] = src[i];
  		i++;
  	}
  	if (i < len)
  		while (i < len)
  			dst[i++] = '\0';
  	return (dst);
  }
  