text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strlcpy.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: jberredj <jberredj@student.42.fr>          +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2020/11/23 15:16:03 by jberredj          #+#    #+#             */
  /*   Updated: 2021/01/27 15:57:00 by jberredj         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "minilibft.h"
  
  size_t	ft_strlcpy(char *dst, const char *src, size_t size)
  {
  	size_t	len;
  	size_t	i;
  
  	if (dst == NULL || src == NULL)
  		return (0);
  	len = ft_strlen(src);
  	i = 0;
  	if (size == 0)
  		return (len);
  	while (src[i] != '\0' && i < (size - 1))
  	{
  		dst[i] = src[i];
  		i++;
  	}
  	dst[i] = '\0';
  	return (len);
  }
  