text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strncpy.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: brel-baz <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2016/11/09 01:24:41 by brel-baz          #+#    #+#             */
  /*   Updated: 2016/11/18 10:11:47 by brel-baz         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  char	*ft_strncpy(char *dst, const char *src, size_t len)
  {
  	size_t i;
  
  	i = 0;
  	while ((i < len) && (src[i]))
  	{
  		dst[i] = src[i];
  		i++;
  	}
  	if (i < len)
  	{
  		while (i < len)
  		{
  			dst[i] = '\0';
  			i++;
  		}
  	}
  	return (dst);
  }
  