text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strncpy.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: ayip <marvin@42.fr>                        +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2017/09/20 00:40:39 by ayip              #+#    #+#             */
  /*   Updated: 2017/09/20 00:43:48 by ayip             ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include <string.h>
  
  char	*ft_strncpy(char *dst, const char *src, size_t len)
  {
  	char	*tmp;
  
  	tmp = dst;
  	while (len-- > 0)
  		if (*src)
  			*tmp++ = *src++;
  		else
  			*tmp++ = 0;
  	return (dst);
  }
  